Update log.go

This commit is contained in:
W192547975
2023-11-18 12:22:59 +08:00
parent 9dda148232
commit 0b6ee986b3

View File

@@ -106,6 +106,11 @@ func (l *logger) setMode(mode int) {
defer l.mtx.Unlock()
l.mode = mode
}
func (l *logger) Mode() int {
l.mtx.Lock()
defer l.mtx.Unlock()
return l.mode
}
func (l *logger) checkFile() {
if l.maxLogSize <= 0 {