I\'m currently using NLog to log securi开发者_JS百科ty events from my ASP.NET MVC3 application. Now we have another requirement to add application errors into a separate log.
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
How can I force NLog to write logfiles using this pattern \"${yyyy}/${MM}/${dd}/开发者_如何学Clog${yyMMdd}.${####}.txt\"?
Is there a way to define what config file NLog is suppos开发者_开发百科ed to use directly using c# code?You should be able to do something like this (note that I have neither compiled nor tested this)
I am writing an application that will be utilized by members of our operations group.I\'d like to show on the screen, the name of the file that NLog is writing to.This will allow them to view the file
Following on from this question I would like autofac to inject the type 开发者_开发问答of the declaring object into the constructor of my NLog service, so that it can correctly log which type is loggi
I am trying to come up with a way to create a commo开发者_如何学运维n library for all my MVC projects. I started off really simple withBaseController and BaseModel classes. Easy stuff!
When using N开发者_Go百科Log as a logging instrument we can easily send messages via email, for example this is the example configuration for using Gmail as a smtp server:
My company\'s standard logging tool is NLog.I\'m trying to introduce Quartz.net and was asked if it could use NLog instead of Log4Net.
I want to write the sta开发者_如何学运维ck trace only when I have exceptions, currently I do it like this