package
0.0.2
Repository: https://github.com/wangtaoking1/app-base.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Debug method output debug level log.
Debugf method output debug level log.
Error method output error level log.
Errorf method output error level log.
Fatal method output Fatalw level log.
Fatalf method output fatal level log.
Flush flushes any buffered log entries.
FromContext returns the value of the log key on the ctx.
Info method output info level log.
Infof method output info level log.
Init initializes logger with specified options.
New creates logger by opts which can custmoized by command arguments.
NewOptions creates an Options object with default parameters.
Panic method output panic level log.
Panicf method output panic level log and shutdown application.
StdLogger returns logger of standard library which writes to supplied zap logger at specified level.
V return a leveled InfoLogger.
Warn method output warning level log.
Warnf method output warning level log.
WithContext returns a copy of context in which the log value is set.
WithValues creates a child logger and adds extra key-values to it.

# Variables

DebugLevel logs are typically voluminous, and are usually disabled in production.
ErrorLevel logs are high-priority.
FatalLevel logs a message, then calls os.Exit(1).
InfoLevel is the default logging priority.
PanicLevel logs a message, then panics.
WarnLevel logs are more important than Info, but don't need individual human review.

# Structs

Options contains configuration items related to log.

# Interfaces

InfoLogger represents the ability to log non-error messages, at a particular verbosity.
Logger represents the ability to log messages, both errors and not.

# Type aliases

Level is an alias for the level structure in the underlying log frame.