Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscardLogger ¶
func DiscardLogger(module string) *logging.Logger
DiscardLogger returns a logger that writes to dev/null. Suitable for use in testing.
func InitJsonLogger ¶
InitJsonLogger creates and returns a logger suitable for logging JSON data. Bagman JSON logs consist of a single JSON object per line, with no extraneous data. Because all of the data in the file is pure JSON, with one record per line, these files are easy to parse.
func InitLogger ¶
InitLogger creates and returns a logger suitable for logging human-readable message. Also returns the path to the log file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.