package
0.0.0-20230820205950-1535236703ea
Repository: https://github.com/blakewilliams/medium.git
Documentation: pkg.go.dev

# Functions

Prints a debug level message to the logger stored in ctx, if a logger is present.
Prints a error level message to the logger stored in ctx, if a logger is present.
Prints a fatal level message to the logger stored in ctx, if a logger is present.
Prints a info level message to the logger stored in ctx, if a logger is present.
Inject returns a new context that can be used with the top-level logger functions, such as Debug, Info, Warn, etc.
Returns the human readable name for the given level.
Extracts a logger from context.
Returns a new Logger that formats logs using the given formatter, writing to the provided io.Writer The level argument allows you to set what types of logs this logger will emit.
Returns a logger that implements the Logger interface but does not write or format the provided fields.
Prints a warn level message to the logger stored in ctx, if a logger is present.
WithDefaults returns a new context with a logger that includes the provided fields for each log call (e.g.

# Constants

Debug level logs, useful for development but too noisy for production.
Error level, useful for emitting information about errors that occur, such as rescued panics.
Fatal level, useful for application breaking errors.
Info level, the default log level.
Null level, useful for testing or disabling logging.
Warning level, useful for warnings such as deprecation notices.

# Structs

JSONFormatter implements the Formatter interface and outputs logs in the JSON format.
PrettyFormatter is a struct that implements the Formatter interface and prints out user readable logs.

# Interfaces

Formatter is the interface used by Logger to take level, msg, and fields and turn them into output for the logger.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author