package
0.0.0-20241111182353-c1fbc2c9b65f
Repository: https://github.com/triangleside/gotools.git
Documentation: pkg.go.dev

# Functions

AddField adds a field to the context for the logger.
AddFields adds many fields to the context for the logger.
No description provided by the author
No description provided by the author
No description provided by the author
DefaultFormatter formats the log entry.
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
FromCtx returns a Logger from the context.
GetLevel returns the applications log level.
No description provided by the author
No description provided by the author
No description provided by the author
MustConfigure parses the Config and sets values for the application logger.
No description provided by the author
No description provided by the author
No description provided by the author
ParseLevel parses a string into a LogLevel.
SetFormatter sets a custom log formatter function.
SetLevel sets the application log level.
SetOutput sets the writer for the application logger.
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
WithConfigProvider sets the provider for the Config.
WithOutputProvider sets the logger output.

# 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

# Structs

Config contains the values needed to configure the logger.

# Interfaces

Logger describes log functions.

# Type aliases

ConfigOption sets values on the loggerConfig.
FormatterFunc defines a function type that takes in a map of fields and a message string and returns a formatted log string.
LogFn is used by the Logger and is invoked selectively when the log level is allowed.
LogLevel represents the various log levels.