Could you go through the Chainsaw codebase and remove all unused/ obsolete stuff in there?

Preferrably also stuff that will be obsolete when we have migrated to away from Log4j 1.

In a separate branch for now.


On 2017-11-20 23:17, Scott Deboy wrote:
Awesome!

Re: appenders:

We went through a couple of code re-orgs back in 2011 and 2013, some
stuff was moved out of Chainsaw to apache-log4j-extras.  Looks like
some was left behind.

You can define Chainsaw as an appender yourself - so the UI starts if
it's in the log4j xml config file.

Because Chainsaw is an appender itself (a graphical one), Chainsaw
hooks in to the existing log4j configuration dynamically as an
appender to receive events, and we use that plumbing to process all
events received by a Receiver.

After building a LoggingEvent from the source, a Receiver pushes the
event to the appender framework by calling:

         // get the "local" logger for this event from the
         // configured repository.
         Logger localLogger =
                 getLoggerRepository().getLogger(event.getLoggerName());

         // if the logger level is greater or equal to the level
         // of the event, use the logger to append the event.
         if (event.getLevel()
                 .isGreaterOrEqual(localLogger.getEffectiveLevel())) {
             // call the loggers appenders to process the event
             localLogger.callAppenders(event);
         }
   }


Scott

Reply via email to