Documentation ¶
Index ¶
- func CfgConsoleAndFileLogger(debugMode bool, logDir, name string, showPath bool)
- func CfgConsoleLogger(debugMode bool, showPath bool)
- func Debug(f interface{}, v ...interface{})
- func Error(f interface{}, v ...interface{})
- func Fatal(f interface{}, v ...interface{})
- func Info(f interface{}, v ...interface{})
- func IsDebugMode() bool
- func Panic(f interface{}, v ...interface{})
- func Warn(f interface{}, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfgConsoleAndFileLogger ¶
TODO: export more file configs CfgConsoleAndFileLogger config for both console and file logs cfg donot support concurrent calls (as any package should init cfg at startup once)
func CfgConsoleLogger ¶
CfgConsoleLogger config for console logs cfg donot support concurrent calls (as any package should init cfg at startup once)
func Fatal ¶
func Fatal(f interface{}, v ...interface{})
Fatal logs a message at emergency level and exit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.