Documentation ¶
Overview ¶
Package logging implements a Go-compatible loggers such as console and basic file rotation.
Silver's logging requirements are very basic. We'll roll our own rather than bring in a fatter dependency like Seelog. All we require on top of Go's basic logging is some very basic file rotation (at the moment only one level).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseAllOpenFileLoggers ¶
func CloseAllOpenFileLoggers()
CloseAllOpenFileLoggers is a convenience method for tests
func NewConsoleLogger ¶
NewConsoleLogger is a basic logger to Stderr
func NewFileLogger ¶
NewFileLogger implements a rolling logger with default maximum size (50Mb)
func NewFileLoggerWithMaxSize ¶
NewFileLoggerWithMaxSize implements a rolling logger with a set size
func NewNilLogger ¶
NewNilLogger is a logger noop/discade implementation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.