On Apr 17, 2007, at 11:27 PM, Curt Arnold wrote:


On Apr 17, 2007, at 10:42 PM, Paul Smith wrote:

Hi all,

I've completed porting the remaining Receiver classes to the sandbox area. The below patch is what I have locally, and taking the generated jar and adding it as a dependency to Chainsaw makes everything compile nicely. I am not able to do any testing on this as yet, and figure a patch review is probably worthwhile at this stage.

These are all baseline copies from the log4j trunk. The DB* stuff needed more fiddling than the others. I had to comment out all internal logging statements in the DBAppender because AppenderSkeleton in 1.2 does not provide that. There is no concept of a sequence # either, so I munged that in the insert statement so that all the inserts have '0' as a sequence value. Given LoggingEvent in 1.2 doesn't have that anyway, I figure that's ok..

Curty, Scott and others, any chance you could review this please before I check it in?

(Note: I'll fix checkstyle issues later, I know there's tabs everywhere sorry)


Maybe you could fake out the getLogger() calls like

      private static final class LogLogger {
           public void debug(final String msg) {
                LogLog.debug(msg);
           }
          public void warn(final String msg) {
                LogLog.warn(msg);
          }
         public void error(final String msg, final Throwable ex) {
               LogLog.error(msg, ex);
        }
     }
     private static final LogLogger getLogger() {
        return new LogLogger();
     }



or even better

     private static final LogLog getLogger() {
          return new LogLog();
     }


You could likely get style warnings that you shouldn't access static members using instance member syntax, but it should still work.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to