Documentation
¶
Index ¶
- type Attr
- func BoolAttr(key string, value bool) Attr
- func Float32Attr(key string, value float32) Attr
- func Float64Attr(key string, value float64) Attr
- func Int8Attr(key string, value int8) Attr
- func Int16Attr(key string, value int16) Attr
- func Int32Attr(key string, value int32) Attr
- func Int64Attr(key string, value int64) Attr
- func IntAttr(key string, value int) Attr
- func StringAttr(key string, value string) Attr
- type GotifyOptions
- type LogLevel
- type Logger
- func (l *Logger) Debug(msg string)
- func (l *Logger) Error(err error, msg string)
- func (l *Logger) Info(msg string)
- func (l *Logger) Warn(msg string)
- func (l *Logger) WithBool(key string, value bool) *Logger
- func (l *Logger) WithFloat32(key string, value float32) *Logger
- func (l *Logger) WithFloat64(key string, value float64) *Logger
- func (l *Logger) WithGroup(name string, attrs ...Attr) *Logger
- func (l *Logger) WithInt(key string, value int) *Logger
- func (l *Logger) WithInt8(key string, value int8) *Logger
- func (l *Logger) WithInt16(key string, value int16) *Logger
- func (l *Logger) WithInt32(key string, value int32) *Logger
- func (l *Logger) WithInt64(key string, value int64) *Logger
- func (l *Logger) WithString(key, value string) *Logger
- func (l *Logger) WithUInt(key string, value uint) *Logger
- func (l *Logger) WithUInt8(key string, value uint8) *Logger
- func (l *Logger) WithUInt16(key string, value uint16) *Logger
- func (l *Logger) WithUInt32(key string, value uint32) *Logger
- func (l *Logger) WithUInt64(key string, value uint64) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GotifyOptions ¶
type LogLevel ¶
type LogLevel int
func ParseLogLevel ¶
func (LogLevel) MarshalJSON ¶
func (LogLevel) MarshalYAML ¶
func (*LogLevel) UnmarshalJSON ¶
func (*LogLevel) UnmarshalYAML ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewWithGotify ¶
func (*Logger) WithString ¶
Click to show internal directories.
Click to hide internal directories.