Documentation ¶
Index ¶
- Variables
- func Debugln(format string, v ...any)
- func Errorln(format string, v ...any)
- func Fatalln(format string, v ...any)
- func Infoln(format string, v ...any)
- func SetLevel(newLevel LogLevel)
- func Subscribe() observable.Subscription[Event]
- func UnSubscribe(sub observable.Subscription[Event])
- func Warnln(format string, v ...any)
- type Event
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var LogLevelMapping = map[string]LogLevel{ ERROR.String(): ERROR, WARNING.String(): WARNING, INFO.String(): INFO, DEBUG.String(): DEBUG, SILENT.String(): SILENT, }
LogLevelMapping is a mapping for LogLevel enum
View Source
var SingLogger L.ContextLogger = singLogger{}
Functions ¶
func Subscribe ¶
func Subscribe() observable.Subscription[Event]
func UnSubscribe ¶
func UnSubscribe(sub observable.Subscription[Event])
Types ¶
type LogLevel ¶
type LogLevel int
func (LogLevel) MarshalJSON ¶
MarshalJSON serialize LogLevel with json
func (LogLevel) MarshalYAML ¶
MarshalYAML serialize LogLevel with yaml
func (*LogLevel) UnmarshalJSON ¶
UnmarshalJSON unserialize LogLevel with json
Click to show internal directories.
Click to hide internal directories.