package
0.1.9
Repository: https://github.com/ablease/service-manager.git
Documentation: pkg.go.dev

# Functions

AddHook adds a hook to all loggers.
Configure creates a new context with a logger using the provided settings.
ContextWithLogger returns a new context with the provided logger.
CorrelationIDForRequest returns checks the http headers for any of the supported correlation id headers.
Default returns the default logger.
DefaultSettings returns default values for Log settings.
ForContext retrieves the current logger from the context.
RegisterFormatter registers a new logrus Formatter with the given name.

# Constants

FieldComponentName is the key of the component field in the log message.
FieldCorrelationID is the key of the correlation id field in the log message.

# Variables

C is an alias for ForContext.
CorrelationIDHeaders are the headers whose values will be taken as a correlation id for incoming requests.
D is an alias for Default.

# Structs

Settings type to be loaded from the environment.