Documentation ¶
Index ¶
- func GetLogLevelPrintString(level LogLevel) string
- func GetLogLevelString(level LogLevel) string
- type DebugLevel
- type LogLevel
- type Logger
- func (c *Logger) Debug(input interface{})
- func (c *Logger) Error(input interface{}) *Logger
- func (c *Logger) GetLogLevel() (level DebugLevel)
- func (c *Logger) GetPrintToConsole() (pr bool)
- func (c *Logger) Info(input interface{})
- func (c *Logger) Notice(input interface{})
- func (c *Logger) ParsingLog(msg LoggerMessage) (raw string)
- func (c *Logger) Quit(err error) error
- func (c *Logger) SetLogLevel(level DebugLevel)
- func (c *Logger) SetOnLoggerHandler(f func(msg LoggerMessage, raw string))
- func (c *Logger) SetPrintToConsole(pr bool)
- func (c *Logger) Success(input interface{})
- func (c *Logger) Warning(input interface{})
- type LoggerMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogLevelPrintString ¶
func GetLogLevelString ¶
Types ¶
type DebugLevel ¶
type DebugLevel int
const ( DebugLevelVerbose DebugLevel = iota DebugLevelInfo DebugLevelWarning DebugLevelError )
type Logger ¶
type Logger struct { OnLogger func(msg LoggerMessage, raw string) // contains filtered or unexported fields }
func (*Logger) GetLogLevel ¶
func (c *Logger) GetLogLevel() (level DebugLevel)
func (*Logger) GetPrintToConsole ¶
func (*Logger) ParsingLog ¶
func (c *Logger) ParsingLog(msg LoggerMessage) (raw string)
func (*Logger) SetLogLevel ¶
func (c *Logger) SetLogLevel(level DebugLevel)
func (*Logger) SetOnLoggerHandler ¶
func (c *Logger) SetOnLoggerHandler(f func(msg LoggerMessage, raw string))
func (*Logger) SetPrintToConsole ¶
Click to show internal directories.
Click to hide internal directories.