Categorygithub.com/opsdata/log
modulepackage
0.0.0-20220531070631-67f3431d740e
Repository: https://github.com/opsdata/log.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package logrus adds a hook to the logrus logger hooks.

# Functions

CheckIntLevel used for other log wrapper such as klog which return if logging a message at the specified level is enabled.
Debug method output debug level log.
Debugf method output debug level log.
Debugw method output debug level log.
Error method output error level log.
Errorf method output error level log.
Errorw method output error level log.
Fatal method output fatal level log.
Fatalf method output fatal level log.
Fatalw method output Fatalw level log.
Flush calls the underlying Core's Sync method, flushing 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.
Infow method output info level log.
Init initializes logger with specified options.
L method output with specified context value.
New create logger by opts which can custmoized by command arguments.
NewLogger creates a new logr.Logger using the given Zap Logger to log.
NewOptions creates a Options object with default parameters.
Panic method output panic level log and shutdown application.
Panicf method output panic level log and shutdown application.
Panicw method output panic level log.
StdErrLogger returns logger of standard library which writes to supplied zap logger at error level.
StdInfoLogger returns logger of standard library which writes to supplied zap logger at info level.
SugaredLogger returns global sugared logger.
V return a leveled InfoLogger.
Warn method output warning level log.
Warnf method output warning level log.
Warnw method output warning level log.
WithContext returns a copy of context in which the log value is set.
WithName adds a new path segment to the logger's name.
WithValues creates a child logger and adds adds Zap fields to it.
ZapLogger used for other log wrapper such as klog.

# Constants

Defines common log fields.
Defines common log fields.
Defines common log fields.

# Variables

Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
DebugLevel logs are typically voluminous, and are usually disabled in production.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
ErrorLevel logs are high-priority.
Alias for zap type functions.
FatalLevel logs a message, then calls os.Exit(1).
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
InfoLevel is the default logging priority.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
PanicLevel logs a message, then panics.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
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

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