Documentation ¶
Index ¶
- Constants
- type Logger
- func (l Logger) Debug(msg string, args ...interface{})
- func (l Logger) Error(msg string, args ...interface{})
- func (l Logger) Fatal(msg string, args ...interface{})
- func (l Logger) Info(msg string, args ...interface{})
- func (l *Logger) SetLoggingLevel(loggingLevel interface{}) error
- func (l Logger) Trace(msg string, args ...interface{})
- func (l Logger) Warn(msg string, args ...interface{})
Constants ¶
View Source
const ( FatalLevel = iota ErrorLevel WarnLevel InfoLevel DebugLevel TraceLevel )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
LoggingLevel int
}
func GetLogger ¶
func GetLogger() *Logger
Returns global logger instance. Init should be called before
func (*Logger) SetLoggingLevel ¶
Set logging level Accepts string and int types as input
Click to show internal directories.
Click to hide internal directories.