Documentation ¶
Overview ¶
Package log implements utility methods for logging in a colorful manner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FancyLogFormatter ¶ added in v0.2.0
type FancyLogFormatter struct {
UseColors bool
}
FancyLogFormatter is the default logger for brig.
type SyslogWrapper ¶ added in v0.2.0
type SyslogWrapper struct {
// contains filtered or unexported fields
}
SyslogWrapper is a hacky way to make the syslog more readable. This only works with FancyLogFormatter from above. It takes it's output, checks what log level was used and puts it into syslog with the right notice level.
func NewSyslogWrapper ¶ added in v0.2.0
func NewSyslogWrapper(w *syslog.Writer) SyslogWrapper
NewSyslogWrapper creates a SyslogWrapper and calls the right log level for each line.
Click to show internal directories.
Click to hide internal directories.