package
0.1.0
Repository: https://github.com/wzshiming/logger.git
Documentation: pkg.go.dev

# Functions

ConsoleEncoder configures the logger to use a Console encoder.
Encoder configures how the logger will encode the output e.g JSON or console.
JSONEncoder configures the logger to use a JSON Encoder.
Level sets the the minimum enabled logging level e.g Debug, Info See Options.Level.
New returns a brand new Logger configured with Opts.
NewRaw returns a new zap.Logger configured with the passed Opts or their defaults.
RawZapOpts allows appending arbitrary zap.Options to configure the underlying zap logger.
StacktraceLevel configures the logger to record a stack trace for all messages at or above a given level.
UseDevMode sets the logger to use (or not use) development mode (more human-readable output, extra stack traces and logging information, etc).
WithOut returns change the io.Writer of logr.Logger.
WriteTo configures the logger to write to the given io.Writer, instead of standard error.

# Variables

No description provided by the author

# Structs

Options contains all possible settings.

# Type aliases

EncoderConfigOption is a function that can modify a `zapcore.EncoderConfig`.
NewEncoderFunc is a function that creates an Encoder using the provided EncoderConfigOptions.
Opts allows to manipulate Options.