Categorygithub.com/brinick/logging
modulepackage
0.0.0-20200403102718-8616abdde0f8
Repository: https://github.com/brinick/logging.git
Documentation: pkg.go.dev

# Functions

Client returns the logging client, or nil if it has not been initiated yet.
Configure will configure the logger with the given attributes.
Debug calls the logger Debug method.
Error calls the logger Error method.
F is a shortcut for creating logging Fields.
Fatal calls the logger Fatal method.
Info calls the logger Info method.
NewClient returns a new instance of the concrete logging Client with the given name.
NewLogrusLogger wraps a logrus client.
NewNullLogger creates a new NullLogger.
SetClient is a factory function to initiate the logging client with the given name.

# Variables

ErrField is a shortcut function for adding an error field to the log output.

# Structs

Config is the concrete type that is passed to a Configurer.
Field represents a logging Field.
LogrusLogger defines a logger using the logrus package as its backend.
NullLogger does nothing.

# Interfaces

Configurer defines the interface to configure logging clients.
Logger defines the interface for logging clients.
LogLeveler defines the interface for log level methods.