Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncLogError func(ctx context.Context, err error) = defaultLogError
FuncLogError 记录error日志.NewDBDao方法里的异常,ctx为nil,扩展时请注意 FuncLogError Record error log
View Source
var FuncLogPanic func(ctx context.Context, err error) = defaultLogPanic
FuncLogPanic 记录panic日志,默认使用"defaultLogError"实现 FuncLogPanic Record panic log, using "defaultLogError" by default
View Source
var FuncLogWarn func(ctx context.Context, err error) = defaultLogError
FuncLogWarn 记录warn日志.NewDBDao方法里的异常,ctx为nil,扩展时请注意 FuncLogWarn Record warn log
View Source
var FuncPrintSQL func(ctx context.Context, sqlstr string, args []interface{}, execSQLMillis int64) = defaultPrintSQL
FuncPrintSQL 打印sql语句,参数和执行时间,小于0是禁用日志输出;等于0是只输出日志,不计算SQ执行时间;大于0是计算执行时间,并且大于指定值 FuncPrintSQL Print sql statement and parameters
View Source
var LogCallDepth = 4
LogCallDepth 记录日志调用层级,用于定位到业务层代码 Log Call Depth Record the log call level, used to locate the business layer code
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.