Skip to content
/ logger Public

Logger based on uber zap package,which can be used to record operation logs in go application.

License

Notifications You must be signed in to change notification settings

go-god/logger

Repository files navigation

logger

 Logger module based on uber zap package,
 which can be used to record operation logs in go applications
     1) Support automatic log cutting and maximum retention time
     2) Support log json formatting processing
     3) Support log output to file and terminal at the same time
     4) Support log printing level and log dyeing function
     
基于uber zap封装而成的logger模块,可用于go应用中记录操作日志
    1)支持日志自动切割和最大保留时长
    2)支持日志json格式化处理
    3)支持日志同时输出到文件和终端
    4)支持日志打印级别和日志染色功能
    5)支持默认日志句柄调用,比如Info,Warn等方法调用

how to use logger

please see example

zap

https://github.com/uber-go/zap

About

Logger based on uber zap package,which can be used to record operation logs in go application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published