Documentation
¶
Index ¶
- Constants
- func ParseLevel(n any) zerolog.Level
- type LogBot
- func (lb *LogBot) Blast(format string, a ...any)
- func (lb *LogBot) BuildLogger(lvl zerolog.Level) zerolog.Logger
- func (lb *LogBot) Debug(format string, a ...any)
- func (lb *LogBot) Error(format string, a ...any)
- func (lb *LogBot) Fatal(format string, a ...any)
- func (lb *LogBot) Info(format string, a ...any)
- func (lb *LogBot) Panic(format string, a ...any)
- func (lb *LogBot) RouteLogMsg(lvl zerolog.Level, msg string)
- func (lb *LogBot) SetLogLevel(lvl zerolog.Level)
- func (lb *LogBot) Warn(format string, a ...any)
- type LogMsg
- type LogOutput
Constants ¶
View Source
const ( PANIC = zerolog.PanicLevel FATAL = zerolog.FatalLevel ERROR = zerolog.ErrorLevel WARN = zerolog.WarnLevel INFO = zerolog.InfoLevel DEBUG = zerolog.DebugLevel TRACE = zerolog.TraceLevel BLAST = zerolog.NoLevel )
View Source
const ( EMPTY = "" SPACE = " " NEWLINE = "\n" )
Variables ¶
This section is empty.
Functions ¶
func ParseLevel ¶
Types ¶
type LogBot ¶
func (*LogBot) Blast ¶
Blast takes a string and passes it to LogBot.RouteLogMsg with zerolog.NoLevel. This ensures the message is logged regardless of the global log level.
func (*LogBot) Debug ¶
Debug takes a string and passes it to LogBot.RouteLogMsg with zerolog.DebugLevel.
func (*LogBot) Error ¶
Error takes a string and passes it to LogBot.RouteLogMsg with zerolog.ErrorLevel.
func (*LogBot) Fatal ¶
Fatal takes a string and passes it to LogBot.RouteLogMsg with zerolog.FatalLevel.
func (*LogBot) Info ¶
Info takes a string and passes it to LogBot.RouteLogMsg with zerolog.InfoLevel.
func (*LogBot) SetLogLevel ¶
Click to show internal directories.
Click to hide internal directories.