specifying a logger for Log4PostSharp

Support of Log4PostSharp

specifying a logger for Log4PostSharp

Postby codymay on Wed Jun 11, 2008 10:15 pm

I've looked through the code but am apparently blindly missing this. Where do you specify which logger (defined in your app.config file, for instance) Log4PostSharp will use? As far as I can tell, it always uses the root logger, but surely I'm missing it.
codymay
 
Posts: 8
Joined: Mon Jun 09, 2008 8:53 pm
First Name: Cody
Last Name: May

Re: specifying a logger for Log4PostSharp

Postby herrmic on Sat Jun 14, 2008 10:54 am

For every class that contains methods decorated with the Log attribute, Log4PostSharp creates separate logger instance. Name of the logger is set to the name of the class, including the namespace it is declared in.
Regards,
Michal Dabrowski
http://herrmic-coding.blogspot.com/
herrmic
 
Posts: 20
Joined: Sat Jan 12, 2008 4:55 pm
First Name: Michal
Last Name: Dabrowski


Return to Log4PostSharp