开发者

NLog write file log on top of file

开发者 https://www.devze.com 2023-02-06 03:51 出处:网络
How to write log as newest on the first in file? Is there some co开发者_运维百科nfiguration?You will not find any logger which can do that since the whole file have to be rewritten each time a new log

How to write log as newest on the first in file? Is there some co开发者_运维百科nfiguration?


You will not find any logger which can do that since the whole file have to be rewritten each time a new log entry is added.

Find a log viewer which can view the log in reverse order instead. Is a lot more resource efficient.

Update

Here is a stream which reads a file backwards: How to read a text file reversely with iterator in C#

0

精彩评论

暂无评论...
验证码 换一张
取 消