【发布时间】:2019-12-15 09:09:55
【问题描述】:
我们知道 Nlog 默认会将信息记录到两个文件中(nlog-all-*.txt/nlog-own-*.txt,* 仅用于日期时间)。
好吧,现在我想将信息记录到不同的文件中。例如:
public IActionResult First()
{
///to log the information into C:/nlog-First-*.txt
return View();
}
public IActionResult Second()
{
///to log the information into C:/nlog-Second-*.txt
return View();
}
我怎样才能做到这一点?谢谢。
【问题讨论】:
标签: c# asp.net-core .net-core nlog