Creating multiple rotating log files at run time.

Topics: Logging Application Block
Jul 27, 2011 at 11:58 AM

Hi,

I have a requirement to create log files at run time when needed using logging application block.

Example: I have several child forms in MDI windows form. 

I would like to create separate log file for each child form only when child form is opened, log file name would be the name of child form and all operations performed in child forms would be logging into that child form's log file. 

 

Thanks,

Ramki

Jul 28, 2011 at 5:21 AM

Hi,

My initial idea here is you can use the Fluent Configuration API to create your log files at runtime but you also had a requirements that you need to intercept the method calls to each child form so I was thinking of using the Policy Injection on this area. Unfortunately there is no Fluent Configuration API made for Policy Injection. So its a tough decision for you to whether go run time or just by configuration.

 

Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.
Contact Us