Commit 4f0e9959 by zhengqiuyun86

初始化

parent 2bad25f5
package conf package conf
import "git.168cad.top/zhengqiuyun/rym-util/log"
type Config struct { type Config struct {
ServerName string
ShowSql bool
LogLevel string LogLevel string
LogColorful bool LogColorful bool
LogResponseLength int LogResponseLength int
...@@ -14,9 +14,9 @@ func BaseConfig(conf Config) { ...@@ -14,9 +14,9 @@ func BaseConfig(conf Config) {
LogResponseLength = conf.LogResponseLength LogResponseLength = conf.LogResponseLength
} }
var LogLevel = "Debug" var LogLevel = log.LevelInfo
//LogColorful 日志是否开启彩色打印 //LogColorful 日志是否开启彩色打印
var LogColorful = true var LogColorful = false
var LogResponseLength = 1000 var LogResponseLength = 10
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment