ceki        2002/06/10 09:46:53

  Modified:    examples Tag: v1_2-branch mycat.bad mycat.good
  Log:
  Corrected incorrect package name references.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.1   +8 -6      jakarta-log4j/examples/mycat.bad
  
  Index: mycat.bad
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/examples/mycat.bad,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- mycat.bad 20 May 2001 15:03:07 -0000      1.5
  +++ mycat.bad 10 Jun 2002 16:46:53 -0000      1.5.2.1
  @@ -1,16 +1,18 @@
   
   # The usual stuff. Note that A1 is configured in root not in "some.cat"
  -log4j.rootCategory=DEBUG, A1
  +log4j.rootLogger=DEBUG, A1
   log4j.appender.A1=org.apache.log4j.ConsoleAppender
   
   log4j.appender.A1.layout=org.apache.log4j.PatternLayout
   log4j.appender.A1.layout.ConversionPattern=%5p [%t] %c - %m%n
   
   # Set the priority of "some.cat" to TRACE (defined in
  -# org.apache.log4j.xml.examples.XPriority). This will actually have
  -# the side effect of instanciating a category object having the name
  -# "some.cat" this will cause a ClassCastException if the category
  -# object is cast as a MyCategory object.
  +# examples.customLevel.XLevel). This will actually have the side
  +# effect of instanciating a logger object having the name "some.cat"
  +# this will cause a ClassCastException if the logger object is cast
  +# as a MyLogger object.
  +
  +log4j.logger.some.cat=TRACE#examples.customLevel.XLevel
  +
   
  -log4j.category.some.cat=TRACE#org.apache.log4j.xml.examples.XPriority
   
  
  
  
  1.6.2.1   +8 -8      jakarta-log4j/examples/mycat.good
  
  Index: mycat.good
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/examples/mycat.good,v
  retrieving revision 1.6
  retrieving revision 1.6.2.1
  diff -u -r1.6 -r1.6.2.1
  --- mycat.good        20 May 2001 15:03:07 -0000      1.6
  +++ mycat.good        10 Jun 2002 16:46:53 -0000      1.6.2.1
  @@ -1,13 +1,13 @@
  -# Setting the category factory to MyCategoryFactory solves the
  +# Setting the logger factory to MyLoggerFactory solves the
   # ClassCastException problem encountered with the "mycat.bad"
   # configuration file.
   
  -log4j.categoryFactory=org.apache.log4j.examples.MyCategoryFactory
  +log4j.loggerFactory=examples.subclass.MyLoggerFactory
   
   
   # The usual stuff. Note that A1 is configured in root not in "some.cat"
   
  -log4j.rootCategory=DEBUG, A1
  +log4j.rootLogger=DEBUG, A1
   log4j.appender.A1=org.apache.log4j.ConsoleAppender
   
   log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  @@ -15,10 +15,10 @@
   
   
   # Set the priority of "some.cat" to TRACE (defined in
  -# org.apache.log4j.xml.examples.XPriority). Since we specified
  -# MyCategoryFactory as the category factory, the following line willl
  -# also have the side effect of instanciating a MyCategory object
  -# having the name "some.cat".
  +# examples.customLevel.XLevel). Since we specified MyLoggerFactory as
  +# the logger factory, the following line willl also have the side
  +# effect of instanciating a MyLogger object having the name
  +# "some.cat".
   
  -log4j.category.some.cat=TRACE#org.apache.log4j.xml.examples.XPriority
  +log4j.logger.some.cat=TRACE#examples.customLevel.XLevel
   
  
  
  

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

Reply via email to