当前位置: 动力学知识库 > 问答 > 编程问答 >

.net - When using NLog Mail target how do I get an email per log entry?

问题描述:

When using the NLog mail target I get multiple log entries in a single email but I need an email per log entry.

Is there a way to do this?

网友答案:

Be default NLog would send a mail per log entry, as I doesn't buffered log entries.

But when using async=true, the AsyncWrapper or BufferingWrapper, log entries are bufferend. That is useful when you like to send a mail with the 10 latest log entries.

分享给朋友:
您可能感兴趣的文章:
随机阅读: