package
0.0.0-20190918005715-796898be05da
Repository: https://github.com/ennoo/rivet.git
Documentation: pkg.go.dev
# Functions
Binary constructs a field that carries an opaque binary blob.
Bool constructs a field that carries a bool.
ByteString constructs a field that carries UTF-8 encoded text as a []byte.
Complex128 constructs a field that carries a complex number.
Complex64 constructs a field that carries a complex number.
Duration constructs a field with the given key and value.
Error is shorthand for the common idiom NamedError("error", err).
Float32 constructs a field that carries a float32.
Float64 constructs a field that carries a float64.
GetLogInstance 获取日志管理对象 Log 单例.
Int constructs a field with the given key and value.
Int16 constructs a field with the given key and value.
Int32 constructs a field with the given key and value.
Int64 constructs a field with the given key and value.
Int8 constructs a field with the given key and value.
NamedError constructs a field that lazily stores err.Error() under the provided key.
Namespace creates a named, isolated scope within the logger's context.
Object constructs a field with the given key and ObjectMarshaler.
Reflect constructs a field with the given key and an arbitrary object.
Skip constructs a no-op field, which is often useful when handling invalid inputs in other zapcore.Field constructors.
String constructs a field with the given key and value.
Stringer constructs a field with the given key and the output of the value's String method.
Time constructs a zapcore.Field with the given key and value.
Uint constructs a field with the given key and value.
Uint16 constructs a field with the given key and value.
Uint32 constructs a field with the given key and value.
Uint64 constructs a field with the given key and value.
Uint8 constructs a field with the given key and value.
Uintptr constructs a field with the given key and value.
# Constants
DebugLevel logs are typically voluminous, and are usually disabled in production.
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.
ReadFileForCACertFail 根据指定路径读取 CA 证书文件失败.
WarnLevel logs are more important than Info, but don't need individual human review.
# Type aliases
A Level is a logging priority.