• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

log4net question

Deeko

Lifer
If anyone could point me in the right direction here, that'd be great.

I've got a web application with a central log, written using log4net. Custom web parts can be written for this application - and we want to have log information from those web parts to be recorded in both the main log, as well as a separate log specific to that web part.

The easy way to do this is to manually create a rolling file appender with the web part, separate from the main logger, and just write twice, once to the main log, once to the custom. However, this doesn't seem very elegant - is there a way to dynamically add this new logger without changing the configuration file?

Thanks
 
Back
Top