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
- func (l LogLevel) MarshalJSON() ([]byte, error)
- func (l LogLevel) MarshalText() ([]byte, error)
- func (l LogLevel) MarshalYAML() (any, error)
- func (l LogLevel) String() string
- func (l *LogLevel) UnmarshalJSON(data []byte) error
- func (l *LogLevel) UnmarshalText(data []byte) error
- func (l *LogLevel) UnmarshalYAML(unmarshal func(any) error) error
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) MarshalText ¶ added in v1.18.9
MarshalText serialize LogLevel
func (LogLevel) MarshalYAML ¶
MarshalYAML serialize LogLevel with yaml
func (*LogLevel) UnmarshalJSON ¶
UnmarshalJSON unserialize LogLevel with json
func (*LogLevel) UnmarshalText ¶ added in v1.18.9
UnmarshalText unserialize LogLevel
Click to show internal directories.
Click to hide internal directories.