Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) GetLogLevel() string
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) SetFileOutPut(out io.Writer)
- func (l *Logger) SetJSONLogFormat()
- func (l *Logger) SetLogLevelDebug()
- func (l *Logger) SetLogLevelInfo()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger struct is loggers map and module variable
func (*Logger) GetLogLevel ¶
GetLogLevel is the return current log level state
func (*Logger) SetFileOutPut ¶
SetFileOutPut is the output to file
func (*Logger) SetJSONLogFormat ¶ added in v0.0.3
func (l *Logger) SetJSONLogFormat()
SetJSONLogFormat is the output log format "JSON"
func (*Logger) SetLogLevelDebug ¶
func (l *Logger) SetLogLevelDebug()
SetLogLevelDebug is the output level of log is changed to debug.
func (*Logger) SetLogLevelInfo ¶
func (l *Logger) SetLogLevelInfo()
SetLogLevelInfo is the output level of log is changed to info.
Click to show internal directories.
Click to hide internal directories.