Code Coverage by Clover.NET

 « Return to Thread: Stopping/Starting NLog on runtime?

Stopping/Starting NLog on runtime?

by FIB :: Rate this Message:

Reply to Author | View in Thread

Hey,

is there a way to start/stop the logging from an application?
I found the possibility to change the config-file and reload it after, but sadly that's no opinion for me, b/c of ClickOnce deployment, which means, that no file is allowed to be changed.

So my hope is that there is a flag i can set with my application to start/stop the logging. Is there something like that? Maybe prevent NLog from reading the config file or something like that?

best regards
Fiona

 « Return to Thread: Stopping/Starting NLog on runtime?