Documentation ¶
Index ¶
- func LoggerInit(prefix string, logDir string, when string, backupCount int) (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(prefix, logDir, when string, backupCount int, 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)
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 ¶
func LoggerInitWithFormat(prefix, logDir, when string, backupCount int, format string) (log4go.Logger, error)
LoggerInitWithFormat initialize logger. Format should be provided
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.