zap 的好幫手: RollingWriter. zap 本身提供的是設置writer 的接口,爲此我實現了一套io.Writer,通過rolling writer 實現了log rotate 的功能。
確定! 回上一頁