logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominik Psenner <dpsen...@gmail.com>
Subject Re: Does log4net have the notion of a status logger?
Date Thu, 10 Dec 2015 07:44:27 GMT
Hi Nicholas,

I can recall that the status logger logs log4j internal log events, 
doesn't it? If that's the case then what you are looking for is 
log4net.util.LogLog which fires events through:

public static event LogReceivedEventHandler LogReceived

Note that the tests further use log4net.Tests.Util.TraceListenerCounter 
to examine log events. This class just extends 
System.Diagnostics.TraceListener and that receives logs sent via the 
TraceAppender. But you can quickly look this up by yourself here:

log4net.Tests.Util.LogLogTest

Cheers,
Dominik

On 2015-12-10 02:29, Nicholas Duane wrote:
> I'm wondering if log4net has the notion of a status logger like in log4j2?
>
> Thanks,
> Nick


Mime
View raw message