添加支持更多的文件驱动

This commit is contained in:
Yun
2024-04-15 23:26:55 +08:00
parent cb25b524b8
commit c7acaa5af6
3 changed files with 40 additions and 5 deletions
+2 -1
View File
@@ -18,5 +18,6 @@ func (l *Logger) write(event string, b []byte) (n int, err error) {
// 强制更新
l.getFile(event, true)
}
return f.Write(b)
d := append(l.option.drivers, f)
return io.MultiWriter(d...).Write(b)
}