Documentation
¶
Overview ¶
Package log exposes the central logger used by rsc and all its sub-packages. The default behavior in application mode consists of logging messages with severity crit or error to Stderr. The default behavior in library mode consists of not logging anything. The Logger variable can be used to set the logger behavior, for example by changing its handler. See https://godoc.org/github.com/inconshreveable/log15 for a list of available handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger is the main rsc logger. Configure its handler as appropriate. Logger log15.Logger )
Functions ¶
func Debug ¶
func Debug(msg string, ctx ...interface{})
Log a message at the given level with context key/value pairs
func Interactive ¶
func Interactive()
Interactive configures the logger to log messages of level Info or higher to Stdout and messages of level Error or lesser to Stderr.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.