Maybe we should rename "StatusLogger" to something more "internal" sounding
like "CoreLogger" or "InternalLogger"?

Gary

On Thu, Nov 19, 2015 at 6:01 PM, Ralph Goers <[email protected]>
wrote:

> Yes, the StatusLogger is how Log4j logs things that happen within Log4j
> itself. If you are writing plugins for Log4j those should also use the
> StatusLogger as they effectively become part of Log4j. If the are regular
> application code then they should not use the StatusLogger.
>
> Although the StatusLogger uses the same API as the Log4j API its
> implementation is quite different and much more limited in what can be done
> with the output.
>
> The StatusLogger implementation doesn’t have Appenders. Instead it has
> StatusListeners that receive the events. The only listeners provided with
> Log4j are the StatusConsoleListener, which writes events to stdout or a
> PrintStream, and StatusLoggerAdmin, which makes events available over JMX.
>
> Ralph
>
>
>
> > On Nov 19, 2015, at 6:33 PM, Nicholas Duane <[email protected]> wrote:
> >
> > I'm trying to get information on the StatusLogger.  I've searched and so
> far the log4j docs say:
> >
> > "Records events that occur in the logging system."
> >
> > There are also a bunch of articles related to people having problems
> with the StatusLogger.  I'm just looking to find out what it is.  It
> appears it's somewhat of an "internal" logger that log4j (log4j2) uses to
> log internal events.  One reason I'm looking into this is because I see
> some code in one of our projects in which the class is logging to the
> StatusLogger.  I assume we shouldn't be doing this.
> >
> > Is the StatusLogger used in log4j2?  In one post I read that the
> "status" attribute controls the level.  Can I set the appender for the
> StatusLogger?
> >
> > Thanks,
> > Nick
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to