Documentation ¶
Index ¶
- func Debug(v interface{})
- func Debugf(format string, v ...interface{})
- func Error(v interface{})
- func Errorf(format string, v ...interface{})
- func Info(v interface{})
- func Infof(format string, v ...interface{})
- func IsDebugEnabled() bool
- func IsTraceEnabled() bool
- func SetupLogger(logConfig *LogConfig) io.WriteCloser
- func Trace(v ...interface{})
- func Tracef(format string, v ...interface{})
- func Warn(v interface{})
- func Warnf(format string, v ...interface{})
- type LogConfig
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf formats according to a format specifier and write the string as an debug entry to the log.
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf formats according to a format specifier and write the string as an error entry to the log.
func Infof ¶
func Infof(format string, v ...interface{})
Infof formats according to a format specifier and write the string as an info entry to the log.
func IsDebugEnabled ¶
func IsDebugEnabled() bool
IsDebugEnabled checks if debug log level is enabled.
func IsTraceEnabled ¶
func IsTraceEnabled() bool
IsTraceEnabled checks if trace log level is enabled.
func SetupLogger ¶
func SetupLogger(logConfig *LogConfig) io.WriteCloser
SetupLogger initialized the log besed on the provided log configuration.
Types ¶
type LogConfig ¶
type LogConfig struct { LogFile string LogLevel string LogFileSize int LogFileCount int LogFileMaxAge int }
LogConfig represents a log configuration.
Click to show internal directories.
Click to hide internal directories.