Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // APPLog is global logger APPLog *zap.Logger // TimeFormat is custom Time format // example: "2006-01-02T15:04:05.999999999Z07:00" // 推荐不要设置, 使用默认时间戳 TimeFormat string )
Functions ¶
func Init ¶
Init initializes log by input parameters lvl - global log level: Debug(-1), Info(0), Warn(1), Error(2), DPanic(3), Panic(4), Fatal(5) timeFormat - custom time format for logger of empty string to use default
func InitOnlyKafka ¶ added in v0.2.0
Init initializes log by input parameters lvl - global log level: Debug(-1), Info(0), Warn(1), Error(2), DPanic(3), Panic(4), Fatal(5) timeFormat - custom time format for logger of empty string to use default
func InitWithKafka ¶ added in v0.2.0
Init initializes log by input parameters lvl - global log level: Debug(-1), Info(0), Warn(1), Error(2), DPanic(3), Panic(4), Fatal(5) timeFormat - custom time format for logger of empty string to use default
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.