# Packages
No description provided by the author
# Functions
No description provided by the author
GetContextLogger
@Description[en-US]: Get the log.Logger object in Context.
GetDefaultLogger
@Description[en-US]: Get the default Logger @Description[zh-CN]: 获取默认的Logger @return log.Logger.
No description provided by the author
No description provided by the author
GetTraceId
@Description[en-US]: Get traceId in Context.
No description provided by the author
No description provided by the author
New returns a new leveled oklog logger.
NewContextLogger
@Description[en-US]: Create a traceable context log object @Description[zh-CN]: 创建可跟踪的上下文日志对象 @param parent context.Context @param opts ...NewLoggerOption @return ${ret_name} context.Context @return ${ret_name} log.Logger.
No description provided by the author
NewTraceId
@Description[en-US]: Generate a trace ID @Description[zh-CN]: 生成一个跟踪ID @return string.
NewTraceLogger
@Description[en-US]: Create a new traceable log object @Description[zh-CN]: 创建新的可跟踪的日志对象 @param options ...NewLoggerOption @return log.Logger.
No description provided by the author
No description provided by the author
No description provided by the author
SetDefaultLogger
@Description[en-US]: Set the default Logger @Description[zh-CN]: 设置默认的Logger @param logger log.Logger.
No description provided by the author
WithCaller
@Description[en-US]: Get the file name path of the specified location of the call chain.
No description provided by the author
No description provided by the author
WithLogger
@Description[en-US]: Specify parent Logger when creating Logger @Description[zh-CN]: 创建Logger时指定父Logger @param l log.Logger @return NewLoggerOption.
WithMethod
@Description[en-US]: Get the method name of the specified location of the call chain (if not specified, the default is 2).
No description provided by the author
WithTraceId
@Description[en-US]: Specify TraceId when creating Logger @Description[zh-CN]: 创建Logger时指定TraceId @param traceId string @return NewLoggerOption.
WithWriter
@Description[en-US]: Specify parent Logger when creating Logger @Description[zh-CN]: 创建Logger时指定父Logger @param l log.Logger @return NewLoggerOption.
No description provided by the author
# Constants
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
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
TimestampFormat This timestamp format differs from RFC3339Nano by using .000 instead of .999999999 which changes the timestamp from 9 variable to 3 fixed decimals (.130 instead of .130987456).
# Structs
Config is a struct containing configurable settings for the logger.
No description provided by the author
# Type aliases
AllowedFormat is a settable identifier for the output format that the logger can have.
AllowedLevel is a settable identifier for the minimum level a log entry must be have.
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