logging - Add additional appenders with NServiceBus Generic Host -
Can someone tell me in the right direction?
What different log4net config files for each profile?
In this way can I have a production.log4net.config and a lite.log4net.config?
It would be more cool if the configuration configuration was at the top of the programmatic configuration already created in the generic host
you need to override your own profile, and then apply IConfigureLoggingForProfile and call it:
NServiceBus.SetLoggingLibrary.Log4Net (() => log4net.Config.XmlConfigurator. Configure (File Opener ("production.log4net.config")));
Comments
Post a Comment