« Return to Thread: Changing FileName programmatically

Changing FileName programmatically

by phlasher :: Rate this Message:

Reply to Author | View in Thread

Hi,
is it possible to configure NLog per NLog.config and then change the filename of a FileTarget programmatically on application launch?
I'm creating a c#-component and I want to let the user specify the LogPath...

I have to set minLevel AND maxLevel, and as far as I can tell, SimpleConfigurator doesn't provide methods to do that...

thanks in advance

 « Return to Thread: Changing FileName programmatically

LightInTheBox - Buy quality products at wholesale price!