Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultZapLogger ¶
func DefaultZapLogger(level zapcore.LevelEnabler) *zap.SugaredLogger
func NewZapLogger ¶
func NewZapLogger(svcName, logLevel, logFormat string) *zap.SugaredLogger
初始化日志实例 svcName: 服务名,自动生成服务名.log文件 logLevel: One of [debug, info, warning, error], default info logFormat: One of [json, console], defaul console 日志文件默认保存30天,每天切换文件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.