Documentation ¶
Index ¶
Constants ¶
View Source
const LogIDKey = "log_id"
Variables ¶
This section is empty.
Functions ¶
func GetDefaultOutput ¶
Types ¶
type MyLogWriter ¶
type MyLogWriter struct { Logger *lumberjack.Logger // ToStd 同时写入到标准输出和文件 ToStd bool }
func (*MyLogWriter) Close ¶
func (l *MyLogWriter) Close() error
Click to show internal directories.
Click to hide internal directories.