2016-01-26 29 views

回答

3

自己重建代碼是目前唯一的選擇。

我已經添加了https://github.com/serilog/serilog/issues/650,希望在即將推出的Serilog v2中加入。

+0

現在看起來就是這樣;你可以將'buffered:true'傳遞給構造函數。 – CrazyPyro

+0

是的,就是這樣。現在還有_Serilog.Sinks.Async_,這是一個異步包裝器,可用於進一步減少文件記錄的延遲(https://github.com/serilog/serilog-sinks-async)。 –