package
1.0.2
Repository: https://github.com/chenparty/gog.git
Documentation: pkg.go.dev

# Packages

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

# Functions

ContextWithValue 基于父context,创建一个带 trace_id 的上下文,受父context生命周期影响,非必要不使用.
No description provided by the author
No description provided by the author
FileAttr 使用文件输出日志的配置.
No description provided by the author
NATSAttr 使用NATS输出日志的配置.
No description provided by the author
NewTraceContext 创建一个新的trace context.
NewTraceContextWithID 创建一个新的trace context, 使用自定义traceID.
NewTraceID 生成一个新的 trace_id.
TraceIDFromContext 从上下文中获取 trace_id.
No description provided by the author

# Constants

No description provided by the author
Names for common levels.
Names for common levels.
Names for common levels.
Names for common levels.
No description provided by the author
No description provided by the author

# Structs

A LevelVar is a [Level] variable, to allow a [Handler] level to change dynamically.
No description provided by the author
No description provided by the author
TraceHook 是一个自定义 Hook,用于为每个日志条目添加 trace_id.

# Interfaces

A Leveler provides a [Level] value.

# Type aliases

A Level is the importance or severity of a log event.
No description provided by the author
No description provided by the author