package
1.3.0
Repository: https://github.com/ibrt/golang-inject-logs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

A is a shorthand builder for args.
Get extracts the Logs from context and wraps it as ContextLogs, returns a no-op Logs if not found.
Initializer is a Logs initializer which provides a default implementation using Logrus and Sentry.
M is a shorthand for providing metadata to an entry.
NewConfigSingletonInjector always inject the given *Config.
NewSingletonInjector always injects the given Logs.

# Constants

Known levels.
Known levels.
Known levels.
Known formats.
Known formats.
Known levels.

# Structs

Config describes the configuration for Logs.
User describes a user.

# Interfaces

ContextLogs describes a Logs with a cached context.
Logs describes the logs module.
Option describes an option which can be applied to an entry.
UserExtractor describes the ability to provide a user.

# Type aliases

Args describes a list of args used for formatting an entry message.
BeforeSendFunc describes a function called before sending out an event.
Level describes a level.
Metadata describes metadata which can be attached to an entry.
OptionFunc describes an option which can be applied to an entry.
OutputFormat describes the format for output logs.