Skip to content
/ glog Public
forked from golang/glog

Leveled execution logs for Go

License

Notifications You must be signed in to change notification settings

aipan/glog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glog

golang/glog 的基础上做了一些修改。

修改的地方:

  1. 增加每天切割日志文件的功能,程序运行时指定 --dailyRolling=true参数即可
  2. 将默认的刷新缓冲区时间由20s改为5s
  3. 默认日志大小2OM

//假设编译后的可执行程序名为demo,运行时指定log_dir参数将日志文件保存到特定的目录 // ./demo --log_dir=./log --dailyRolling=true

About

Leveled execution logs for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%