添加过期移除

This commit is contained in:
Yun
2024-01-23 13:37:51 +08:00
parent 10ecbce64f
commit 60ad89f164
6 changed files with 68 additions and 7 deletions
+4
View File
@@ -52,6 +52,10 @@ func NewLogger(opts ...Option) *Logger {
gin.DefaultWriter = io.MultiWriter(l, os.Stdout)
gin.DefaultErrorWriter = io.MultiWriter(l, os.Stdout)
}
// 日志删除
go l.delete()
return l
}