README ¶ cutlog 介绍 这个是一个简单的取替tee输出日志的小工具。 平时用shell写脚本守护golang之类的开源工具,例如:thanos。这类工具都没有日志切割功能。 而cutlog只是简单的从管道读取日志数据,利用https://github.com/natefinch/lumberjack实现日志切割压缩等功能。 用法 Usage of ./cutlog: -f string file path -max.age int 保留旧文件的最大天数,单位(天) (default 30) -max.backup int 保留旧文件的最大个数. (default 5) -max.size int 单位MB (default 10) -version print the version Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.