logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw Generator.java
Date Mon, 22 Sep 2003 06:57:04 GMT
psmith      2003/09/21 23:57:04

  Modified:    src/java/org/apache/log4j/chainsaw Generator.java
  Log:
  Moved the Generator to post events into Log4j just like a real
  Receiver would.
  
  Revision  Changes    Path
  1.3       +12 -54    jakarta-log4j/src/java/org/apache/log4j/chainsaw/Generator.java
  
  Index: Generator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/Generator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Generator.java	19 Sep 2003 07:06:40 -0000	1.2
  +++ Generator.java	22 Sep 2003 06:57:04 -0000	1.3
  @@ -105,60 +105,18 @@
             + " g dg sdfa sadf sdf safd fsda asfd sdfa sdaf asfd asdf fasd fasd adfs fasd
adfs fads afds afds afsd afsd afsd afsd afsd fasd asfd asfd afsd fasd afsd",
             new Exception("someexception-" + baseString_)));
   
  -      //      if (isAsSevereAsThreshold(Level.INFO)) {
  -      //        logger1.info(
  -      //          "infomsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.WARN)) {
  -      //        logger1.warn(
  -      //          "warnmsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.ERROR)) {
  -      //        logger1.error(
  -      //          "errormsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.DEBUG)) {
  -      //        logger2.debug(
  -      //          "debugmsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.INFO)) {
  -      //        logger2.info(
  -      //          "infomsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.WARN)) {
  -      //        logger2.warn(
  -      //          "warnmsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.ERROR)) {
  -      //        logger2.error(
  -      //          "errormsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.DEBUG)) {
  -      //        logger3.debug(
  -      //          "debugmsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.INFO)) {
  -      //        logger3.info(
  -      //          "infomsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.WARN)) {
  -      //        logger3.warn(
  -      //          "warnmsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  -      //
  -      //      if (isAsSevereAsThreshold(Level.ERROR)) {
  -      //        logger3.error(
  -      //          "errormsg " + i++, new Exception("someexception-" + baseString_));
  -      //      }
  +     doPost(createEvent(Level.INFO, logger2, "infomsg " + i++, new Exception("someexception-"
+ baseString_)));
  +
  +     doPost(createEvent(Level.WARN,logger3,  "warnmsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.ERROR, logger1, "errormsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.DEBUG, logger2,"debugmsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.INFO, logger3,"infomsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.WARN, logger1, "warnmsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.ERROR, logger2, "errormsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.DEBUG, logger3, "debugmsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.INFO, logger1, "infomsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.WARN, logger2, "warnmsg " + i++, new Exception("someexception-"
+ baseString_)));
  +     doPost(createEvent(Level.ERROR, logger3, "errormsg " + i++, new Exception("someexception-"
+ baseString_)));
         try {
           Thread.sleep(1000);
         } catch (InterruptedException ie) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message