cutlog

command module
v0.0.0-...-1854209 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2020 License: LGPL-2.1 Imports: 6 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL