Categorygithub.com/runner-mei/log
modulepackage
1.0.11
Repository: https://github.com/runner-mei/log.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package stacktrace provides support for gathering stack traces efficiently.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
ContextWithLogger returns a new `context.Context` that holds a reference to `logger`'s LoggerContext.
No description provided by the author
For returns a context-aware Logger.
No description provided by the author
No description provided by the author
No description provided by the author
LoggerFromContext returns the `logger` previously associated with `ctx`, or `nil` if no such `logger` could be found.
LoggerOrEmptyFromContext returns the `logger` previously associated with `ctx`, or `Empty` if no such `logger` could be found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

DebugLevel logs are typically voluminous, and are usually disabled in production.
No description provided by the author
DPanicLevel logs are particularly important errors.
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.

# Variables

Any adds an any-valued key:value pair to a Span.LogFields() record.
Binary constructs a field that carries an opaque binary blob.
Bool adds a bool-valued key:value pair to a Span.LogFields() record.
ByteString constructs a field that carries UTF-8 encoded text as a []byte.
Duration constructs a field with the given key and value.
Error adds an error with the key "error" to a Span.LogFields() record.
Float32 adds a float32-valued key:value pair to a Span.LogFields() record.
Float64 adds a float64-valued key:value pair to a Span.LogFields() record.
Int adds an int-valued key:value pair to a Span.LogFields() record.
Int32 adds an int32-valued key:value pair to a Span.LogFields() record.
Int64 adds an int64-valued key:value pair to a Span.LogFields() record.
NamedError constructs a field that lazily stores err.Error() under the provided key.
Noop creates a no-op log field that should be ignored by the tracer.
Object adds an object-valued key:value pair to a Span.LogFields() record.
Stack constructs a field that stores a stacktrace of the current goroutine under provided key.
String adds a string-valued key:value pair to a Span.LogFields() record.
Stringer constructs a field with the given key and the output of the value's String method.
Time constructs a Field with the given key and value.
Uint32 adds a uint32-valued key:value pair to a Span.LogFields() record.
Uint64 adds a uint64-valued key:value pair to a Span.LogFields() record.

# Structs

SQLTracer 是 github.com/runner-mei/GoBatis 的 Tracer.

# Interfaces

Logger is a simplified abstraction of the zap.Logger.
No description provided by the author

# Type aliases

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