Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogConfiguration = &LogConfig{PrintLog: true, IsDebug: true, DataDir: "log"}
LogConfiguration is the Configuration of log
Functions ¶
This section is empty.
Types ¶
type LogConfig ¶
type LogConfig struct { // If IsDebug is true, the log level will be DebugLevel, otherwise it is InfoLevel IsDebug bool `json:"isDebug"` // If PrintLog is true, all logs will be printed in the console, otherwise they will be stored in the file. PrintLog bool `json:"printLog"` // DataDir default log directory in temp folder DataDir string `json:"-"` }
LogConfig is the Configuration of log
Click to show internal directories.
Click to hide internal directories.