Documentation ¶
Index ¶
Constants ¶
View Source
const ( //logmod 默认是 1 文件 2 stdout 4 其他 FILE_MODE = 1 << iota STDOUT_MODE OTHER_MODE TIME_KEY = "time" LEVEL_KEY = "level" NAME_KEY = "logger" CALLER_KEY = "line" MESSAGE_KEY = "data" STACK_TRACE_KEY = "stacktrace" SERVER_NAME = "server" )
View Source
const (
TIMEFORMAT = "2006-01-02 15-04-05.000"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
定义基本的日志
func (*Logger) LoadFromObject ¶
type ZConfig ¶
type ZConfig struct { LogName string `toml:"logname"` Timekey string `toml:"timekey"` LevelKey string `toml:"levelkey"` NameKey string `toml:"namekey"` CallerKey string `toml:"callerkey"` MessageKey string `toml:"messagekey"` StacktraceKey string `toml:"stacktracekey"` Level string `toml:"level"` IsDev bool `toml:"isdev"` LogMod int8 `toml:"logmod"` ServerName string `toml:"servername"` }
Click to show internal directories.
Click to hide internal directories.