# Packages
No description provided by the author
# Functions
Lock wraps io.Writer in a mutex to make it safe for concurrent use.
ModifyDefaults modifies the global default options for this log package that each new logger inherits when it is created.
MustParseVerbosityLevel returns a verbosity Level parsed from the given s.
NewLogger is a factory constructor which returns a new logger instance based on the given name.
ParseVerbosityLevel returns a verbosity Level parsed from the given s.
RegistryIterate iterates through all registered loggers.
SetVerbosity sets the level of verbosity of the given logger.
SetVerbosityByExp sets all loggers to the given verbosity level v that match the given expression e, which can be a logger id or a regular expression.
WithCaller tells the logger to add a "caller" key to some or all log lines.
WithCallerDepth tells the logger the number of stack-frames to skip when attributing the log line to a file and line.
WithCallerFunc tells the logger to also log the calling function name.
WithJSONOutput tells the logger if the output should be formatted as JSON.
WithLevelHooks tells the logger to register and execute hooks at related severity log levels.
WithLogMetrics tells the logger to collect metrics about log messages.
WithMaxDepth tells the logger how many levels of nested fields (e.g.
WithSink tells the logger to log to the given sync.
WithTimestamp tells the logger to add a "timestamp" key to log lines.
WithTimestampLayout tells the logger how to render timestamps when WithTimestamp is enabled.
WithVerbosity tells the logger which verbosity level should be logged by default.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VerbosityAll allows to print all messages up to and including level V.
VerbosityDebug allows only error, warning, info and debug messages to be printed.
VerbosityError allows only error messages to be printed.
VerbosityInfo allows only error, warning and info messages to be printed.
VerbosityNone will silence the logger.
VerbosityWarning allows only error and warning messages to be printed.
# Variables
Noop is an implementation of a logger that does not log.
# Interfaces
Builder specifies a set of methods that can be used to modify the behavior of the logger before it is created.
Hook that is fired when logging on the associated severity log level.
Logger provides a set of methods that define the behavior of the logger.
Marshaler is an optional interface that logged values may choose to implement.
# Type aliases
Level specifies a level of verbosity for logger.
MessageCategory indicates which category or categories of messages should include the caller in the log lines.
Option represent Options parameters modifier.
PseudoStruct is a list of key-value pairs that gets logged as a struct.