rollingwriter icon indicating copy to clipboard operation
rollingwriter copied to clipboard

Rolling writer is an IO util for auto rolling write in go.

Results 11 rollingwriter issues
Sort by recently updated
recently updated
newest added

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...

例如lumberjack中的MaxAge,作为日志的预留保留天数

enhancement

现在好像是2选1

enhancement
help wanted

update clean up function

enhancement

更改为记录文件大小并切换

enhancement

归档后,还是会往归档文件中持续写入日志

investigate

建议把FileExtension参数去掉,用FileName表示完整的文件名,需要用到文件名的前缀或后缀,可通过截取的方式获取 建议RollingTimePattern参数进行封装简化,按分钟(方便测试)、按天或按小时切割

我设置的policy是VolumeRolling,最大大小是100k,试了lock模式和async模式,都有问题,归档的日志大小有0字节的、3mb的,573kb的,很不稳

investigate