# README
slog
Package slog defines a logger interface and provides a default implementation of a subsystem-aware leveled logger implementing the same interface.
Installation and Updating
$ go get -u github.com/decred/slog
License
Package slog is licensed under the copyfree ISC License.
# Functions
LevelFromString returns a level based on the input string s.
NewBackend creates a logger backend from a Writer.
WithFlags configures a Backend to use the specified flags rather than using the package's defaults as determined through the LOGFLAGS environment variable.
# Constants
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Llongfile modifies the logger output to include full path and line number of the logging callsite, e.g.
Lnodatetime suppresses the date and time from the logger output.
Lshortfile modifies the logger output to include filename and line number of the logging callsite, e.g.
LUTC modifies the logger output to report all times in UTC instead of in the local time zone.
# Variables
Disabled is a Logger that will never output anything.
# Interfaces
Logger is an interface which describes a level-based logger.
# Type aliases
BackendOption is a function used to modify the behavior of a Backend.
Level is the level at which a logger is configured.