rollingwriter
rollingwriter copied to clipboard
Rolling writer is an IO util for auto rolling write in go.
PR of [FileName use template string](https://github.com/arthurkiller/rollingwriter/issues/35). --- Add `LogFileFormatter` field in `Config`. The old file name splicing method has provided a default implementation.
For **FileName**, consider using template strings, such as `foo-${date}.log.gz`, which makes the file suffix reasonable. It's strange to force a **TimeTag** spliced to the end of **FileName**. Last, thanks for...
建议把FileExtension参数去掉,用FileName表示完整的文件名,需要用到文件名的前缀或后缀,可通过截取的方式获取 建议RollingTimePattern参数进行封装简化,按分钟(方便测试)、按天或按小时切割
日志分割有问题
我设置的policy是VolumeRolling,最大大小是100k,试了lock模式和async模式,都有问题,归档的日志大小有0字节的、3mb的,573kb的,很不稳