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.

# Variables

Bow 网关日志对象.
Common 通用包日志对象.
Discovery 发现服务包日志对象.
Examples 案例日志对象.
Log 日志全局对象.
Rivet 框架日志对象.
Scheduled 定时任务日志对象.
Self 当前使用该框架服务日志对象.
Server 关联接口服务日志对象.
Shunt 负载均衡日志对象.
Trans 请求处理日志对象.

# Structs

Config 日志配置对象.
Logger 日志入口对象.

# Type aliases

A Level is a logging priority.