gookit / slog

📑 Lightweight, configurable, extensible logging library written in Go. Support multi level, multi outputs and built-in multi file logger, buffers, clean, rotate-file handling.一个易于使用的,轻量级、可配置、可扩展的日志库。支持多个级别,输出到多文件;内置文件日志处理、自动切割、清理、压缩等增强功能
https://pkg.go.dev/github.com/gookit/slog
MIT License
383 stars 24 forks source link

Run rotate #126

Open Dmitriy147 opened 10 months ago

Dmitriy147 commented 10 months ago

Is it any example to use cron for rotation logs at custom moment? I am trying to make new log file daily at midnight.