//
pkg.gl
Category
github.com/huangshaokun/jsonlog
module
package
1.0.1
Repository:
https://github.com/huangshaokun/jsonlog.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
17
Dependents
0
Files
355 SLOC
#
README
写每行为json的日志文件
支持日志级别
支持多实例
仅在linux支持分割文件,windows下只写一个文件
#
Functions
Ctx
Ctx ..
Debug
Debug ..
Error
Error ..
Fatal
Fatal ..
Info
Info ..
Log
Log ..
LogClose
LogClose 关闭日志库.
NewJSONLog
NewJSONLog 创建日志库.
Panic
Panic ..
RequestLog
RequestLog http请求的日志 返回值, body里的数据.
SendJSON
SendJSON 发送json数据给前端flog 可以为nil,用来记录日志的data 为数据status 默认由400 和 200 两个.
Warn
Warn ..
#
Constants
LogLevel
LogLevel 日志级别.