package
1.0.1
Repository: https://github.com/linuxboot/contest.git
Documentation: pkg.go.dev

# Functions

MinimalLoggerLogf is an implementation of method Logf (of interface MinimalLoggerCompact) based on MinimalLogger.
ParseLogLevel parses incoming string into a Level and returns LevelUndefined with an error if an unknown logging level was passed.
WrapMinimalLogger wraps a MinimalLogger to provide a Logger.
WrapMinimalLoggerCompact wraps a MinimalLoggerCompact to provide a Logger.
WrapPrintf wraps a Printf-like function to provide a Logger.

# Constants

LevelDebug will report about Debugf-s, Infof-s, ...
LevelError will report about Errorf-s, Panicf-s, ...
LevelFatal will report about Fatalf-s only.
LevelInfo will report about Infof-s, Warningf-s, ...
LevelPanic will report about Panicf-s and Fatalf-s only.
LevelUndefined is the erroneous value of log-level which corresponds to zero-value.
LevelWarning will report about Warningf-s, Errorf-s, ...

# Structs

DummyLogger is just a logger which does nothing.
ExtendWrapper implements Logger based on MinimalLogger.
UncompactLoggerCompact converts LoggerCompact to Logger.
UncompactMinimalLoggerCompact converts MinimalLoggerCompact to MinimalLogger.

# Interfaces

Logger is the interface of a logger provided by an extended context.
LoggerCompact is a kind of logger with one method Logf(level, ...) instead of separate methods Debugf(...), Infof(...), Warnf(...) and so on.
LoggerExtensions includes all the features required for a Logger over MinimalLogger.
MinimalLogger is a simple logger, for example logrus.Entry or zap.SugaredLogger could be candidates of an implementation of this interfaces.
No description provided by the author
WithFields requires methods of a logger with support of structured logging.
WithLevels requires methods of a logger with support of logging levels.

# Type aliases

Fields is a multiple of fields which are attached to logger/tracer messages.
Level is used to define severity of messages to be reported.