Documentation ¶
Index ¶
- Constants
- func InitDefaultLogger(logLevel string)
- type Logger
- type Loggers
- func (loggers *Loggers) Debug(message string, args ...interface{})
- func (loggers *Loggers) Error(message string, args ...interface{})
- func (loggers *Loggers) Info(message string, args ...interface{})
- func (loggers *Loggers) Log(level string, message string, args ...interface{})
- func (loggers *Loggers) Trace(message string, args ...interface{})
- func (loggers *Loggers) Warn(message string, args ...interface{})
Constants ¶
View Source
const ( ERROR = "ERROR" WARN = "WARN" INFO = "INFO" DEBUG = "DEBUG" TRACE = "TRACE" )
Variables ¶
This section is empty.
Functions ¶
func InitDefaultLogger ¶ added in v1.1.0
func InitDefaultLogger(logLevel string)
Types ¶
type Logger ¶
type Logger interface { Trace(message string, args ...interface{}) Debug(message string, args ...interface{}) Info(message string, args ...interface{}) Warn(message string, args ...interface{}) Error(message string, args ...interface{}) Log(level string, message string, args ...interface{}) }
var Log Logger
Click to show internal directories.
Click to hide internal directories.