Code Coverage by Clover.NET

where does MailTarget store its properties??

View: New views
1 Messages — Rating Filter:   Alert me  

where does MailTarget store its properties??

by ElysianEagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hey,

i have the following code:

NLog.Targets.MailTarget mailTarget = logger.Factory.Configuration.FindTargetByName("mail") as NLog.Targets.MailTarget;

mailTarget.SmtpServer = "some_smtp_server";
mailTarget.To = "jack@jack.com";
...

now when i shutdown and restart my app, the mailTarget seems to remember those changes.  but it must be storing these changes somewhere, and they're not showing up in the NLog.config file...so where are they being stored???

thanks!