package
0.0.0-20241217062345-852b9c5a8d98
Repository: https://github.com/tianlin0/plat-lib.git
Documentation: pkg.go.dev
# Functions
CtxLogger 获取系统默认的日志.
DefaultLogger 获取系统默认的日志.
GetConfig 获取默认配置.
GetCtxLogger 只是取得ctx实例,为空则使用默认的.
GetLogLevel 通过名称取得日志等级.
Logger 直接根据等级打印所有日志.
NewCtxLogger 例子,一个完整的日志,需要实现如下方法.
NewLogData 初始化一个日志变量.
NewPrintLogger 例子,一个完整的日志,需要实现如下方法.
SetConfig 设置默认日志,不能包含ctx,不然全局唯一会有问题.
WithCtxLogger 初始化.
# 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
# Type aliases
No description provided by the author
LogExecute log处理方法.
LogLevel defines a log level.
No description provided by the author