Update log.go

This commit is contained in:
W192547975
2023-11-18 12:22:59 +08:00
committed by GitHub
parent 42598a9592
commit 82f3ecde05

View File

@@ -97,6 +97,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 {