*
This commit is contained in:
1 parent
6a6b43fe9a
commit
3a34eda3e8
2 files changed
+82
-71
No files matched your search
@@ -272,8 +272,9 @@ public class BaseLogger {
|
||||
public void Flush() {
|
||||
try {
|
||||
if (!avaliable) return;
|
||||
lock (flushLock)
|
||||
lock (flushLock) {
|
||||
while (queue.TryDequeue(out LogEntry entry)) Output(entry); // writer 指定了 AutoFlush
|
||||
}
|
||||
} catch (Exception logEx) {
|
||||
Logger.SendToDebug(logEx, "输出日志失败");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user