Documentation
¶
Index ¶
Constants ¶
View Source
const Memory = "memory"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleLogger ¶
type ConsoleLogger struct{}
ConsoleLogger is a convenience which writes anything above LogLevelInfo to os.Stdout.
func (ConsoleLogger) IsEnabled ¶
func (ConsoleLogger) IsEnabled(level LogLevel) bool
IsEnabled implements the same method as documented on api.Logger.
type LogLevel ¶
type LogLevel int32
LogLevel controls the volume of logging. The lower the number the more detail is logged.
Note: The most voluminous level, LogLevelDebug is -1 to prevent users from accidentally defaulting to it.
type NoopLogger ¶
type NoopLogger struct{}
NoopLogger is a convenience which ignores all output.
func (NoopLogger) IsEnabled ¶
func (NoopLogger) IsEnabled(level LogLevel) bool
IsEnabled implements the same method as documented on api.Logger.
Click to show internal directories.
Click to hide internal directories.