Documentation ¶
Index ¶
Constants ¶
View Source
const ( // 日志文件的时间格式 LogFileNameTimeFormat = "2006-01-02-15" // 日志文件大小限制 LogMaxSize = 10 // 日志文件的备份天数 LogMaxBackups = 31 // 日志文件的最大天数 LogMaxAge = 31 )
Variables ¶
View Source
var ( // 日志 Log zerolog.Logger // 缓存日志 LumberLogger *lumberjack.Logger )
Functions ¶
func FastHttpZeroLogHandler ¶
func FastHttpZeroLogHandler(next phi.RequestHandlerFunc) phi.RequestHandlerFunc
Types ¶
type FastHTTPLoggerAdapter ¶
FastHTTPLoggerAdapter Adapter for passing apex/log used as gramework Logger into fasthttp
func NewFastHTTPLoggerAdapter ¶
func NewFastHTTPLoggerAdapter(log zerolog.Logger) *FastHTTPLoggerAdapter
NewFastHTTPLoggerAdapter create new *FastHTTPLoggerAdapter
Click to show internal directories.
Click to hide internal directories.