package
2.0.1+incompatible
Repository: https://github.com/jianwangex/commonservice.git
Documentation: pkg.go.dev

# Packages

Package zap_extension @Author wangjian 2023/6/1 6:44 PM.

# Functions

CtxLogger means Logger with trace id.
CtxSugar means Sugar Logger with trace id.
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
GetLogger 返回logger,log将会输出到./log/error.file和./log/server.log.
GetSysLogger 返回system logger 日志将输出到./log/sys_error.log和./log/sys.log 这个logger应只被用于系统框架,请使用GetLogger()对于业务日志.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InitLogger 初始化logger和system logger 这个function应该只运行一次.
No description provided by the author
No description provided by the author
SetLevel 动态设置日志级别,duration只适用于在live环境下设置日志级别为debug时, 即在live环境下设置日志级别为debug时,在设置时间间隔之后,日志级别将恢复为初始配置(如果为设置,默认为InfoLvl).
SetLogFileName 设置按级别拆分的日志文件名。 如果newName有效且设置成功返回true,如果newName与其他日志文件重复且设置失败返回false。 应在记录器初始化之前调用。 例如SetLogFileName(log.DebugLvl,"my_debug"),那么所有的调试日志将写入my_debug.log。.
No description provided by the author
SysDebug - System log in DebugLvl level.
SysDebugf - System sugar log in DebugLvl level.
SysDPanic - System log in DPanicLvl level.
SysDPanicf - System sugar log in DPanicLvl level.
SysError - System log in ErrorLvl level.
SysErrorf - System sugar log in ErrorLvl level.
SysFatal - System log in FatalLvl level.
SysFatalf - System sugar log in FatalLvl level.
SysInfo - System log in InfoLvl level.
SysInfof - System sugar log in InfoLvl level.
SysPanic - System log in PanicLvl level.
SysPanicf - System sugar log in PanicLvl level.
SysWarn - System log in WarnLvl level.
SysWarnf - System sugar log in WarnLvl level.
No description provided by the author
No description provided by the author
No description provided by the author
WithNewTraceLog @Description: 构建带有traceId的logger @param ctx @return context.Context TODO: 仅支持单个请求跟踪记录.

# 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
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

# Structs

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