Documentation ¶
Index ¶
- func LoggerInit(c LogConfig) (log4go.Logger, error)
- func LoggerInit2(fileName, logDir, when string, backupCount int) (log4go.Logger, error)
- func LoggerInit3(filePath, when string, backupCount int) (log4go.Logger, error)
- func LoggerInitWithFormat(c LogConfig, format string) (log4go.Logger, error)
- func LoggerInitWithFormat2(fileName, logDir, when string, backupCount int, format string) (log4go.Logger, error)
- func LoggerInitWithSvr(progName string, loggerName string, network string, svrAddr string) (log4go.Logger, error)
- type LogConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerInit ¶
LoggerInit initialize logger. Log file name is prefix.log
func LoggerInit2 ¶
LoggerInit2 initialize logger. Log file name is fileName
func LoggerInit3 ¶
LoggerInit3 initialize logger. FilePath should be provided
func LoggerInitWithFormat ¶
LoggerInitWithFormat initialize logger. Format should be provided
Types ¶
type LogConfig ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.