日志库新增功能指令

This commit is contained in:
flswld committed 2024-11-21 19:01:10 +08:00
1 parent 7b3ba4bb3c
commit 2a59af8e6d
1 file changed
+2 -2
+2 -2
View File
@@ -238,8 +238,8 @@ func (l *Logger) doLog() {
}
func (l *Logger) writeLog(logData []byte, logTag string) {
if logTag != "" {
l.writeLogFile(l.WriteBuf, logTag)
if CONF.EnableFile && logTag != "" {
l.writeLogFile(logData, logTag)
}
l.WriteBuf = append(l.WriteBuf, logData...)
l.WriteCacheNum++