Documentation
¶
Index ¶
- Constants
- Variables
- func SetLevel(newLevel LogLevel)
- func SetTracing(t bool)
- func SubscribeJson() observable.Subscription[Event]
- func SubscribeText() observable.Subscription[Event]
- func UnSubscribeJson(sub observable.Subscription[Event])
- func UnSubscribeText(sub observable.Subscription[Event])
- type Event
- type LogLevel
Constants ¶
View Source
const ( DEBUG = LogLevel(logger.DebugLevel) INFO = LogLevel(logger.InfoLevel) WARNING = LogLevel(logger.WarnLevel) ERROR = LogLevel(logger.ErrorLevel) FATAL = LogLevel(logger.FatalLevel) SILENT = LogLevel(8) )
Variables ¶
View Source
var LogLevelMapping = map[string]LogLevel{ FATAL.String(): FATAL, ERROR.String(): ERROR, WARNING.String(): WARNING, INFO.String(): INFO, DEBUG.String(): DEBUG, SILENT.String(): SILENT, }
LogLevelMapping is a mapping for LogLevel enum
Functions ¶
func SetTracing ¶
func SetTracing(t bool)
func SubscribeJson ¶
func SubscribeJson() observable.Subscription[Event]
func SubscribeText ¶
func SubscribeText() observable.Subscription[Event]
func UnSubscribeJson ¶
func UnSubscribeJson(sub observable.Subscription[Event])
func UnSubscribeText ¶
func UnSubscribeText(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.