logger

package
v2.1.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 8 Imported by: 1

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

func InitJsonLogger(config *models.Config) (*stdlog.Logger, string)

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

func InitLogger(config *models.Config) (*logging.Logger, string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL