What about a static logger?

2007-05-20 Thread wolverine my
Hi! Does it matters if we declared the logger as static or a instance variable? It seem to me that the static logger has more advantage as it can be used in static scope/method. What is the best practice of declaring a logger? ---

Re: What about a static logger?

2007-05-20 Thread Jacob Kjome
At 09:42 PM 5/20/2007, you wrote: >Hi! > >Does it matters if we declared the logger as static or a instance variable? > >It seem to me that the static logger has more advantage as it can be >used in static scope/method. > >What is the best practice of declaring a logger? > A nice synopsis of this

Re: New Implementation: Logger-level Filtering

2007-05-20 Thread Ron Grabowski
In log4net we have a ForwardingAppender that takes a message and fowards it to one or more other appenders. To solve the problem of not having to apply filters twice I'd put a ForwardingAppender infront of the two other appenders. If the message passed through the filters on the FowardingAppend