db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/forrest/src/documentation/content/xdocs/docu logging.xml
Date Mon, 07 Jun 2004 20:00:55 GMT
tomdz       2004/06/07 13:00:55

  Modified:    src/java/org/apache/ojb/broker/util/logging
                        LoggerFactoryImpl.java
               forrest/src/documentation/content/xdocs/docu logging.xml
  Log:
  Minor documentation enhancements
  
  Revision  Changes    Path
  1.17      +1 -2      db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java
  
  Index: LoggerFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- LoggerFactoryImpl.java	6 Jun 2004 20:33:16 -0000	1.16
  +++ LoggerFactoryImpl.java	7 Jun 2004 20:00:55 -0000	1.17
  @@ -78,7 +78,6 @@
       {
           if (bootLogger == null)
           {
  -            // TODO: replace this with commons-logging
               bootLogger = new PoorMansLoggerImpl("BOOT");
               // allow user to set boot log level via system property
               String level = System.getProperty("OJB.bootLogLevel", "WARN");
  
  
  
  1.2       +19 -15    db-ojb/forrest/src/documentation/content/xdocs/docu/logging.xml
  
  Index: logging.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/forrest/src/documentation/content/xdocs/docu/logging.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- logging.xml	6 Jun 2004 19:41:53 -0000	1.1
  +++ logging.xml	7 Jun 2004 20:00:55 -0000	1.2
  @@ -106,10 +106,11 @@
                       </li>
                   </ol>
                   <p>
  -                    The only OJB component whose logging is not initialized this way, is
the logging component
  -                    itself. It will (for obvious reasons) always use
  -                    <link href="ext:api/poor-mans-logger">PoorMansLoggerImpl</link>
and therefore log to
  -                    <code>stdout</code>.
  +                    The only OJB component whose logging is not initialized this way, is
the boot logger which
  +                    is used by logging component itself and a few other core components.
It will (for obvious
  +                    reasons) always use <link href="ext:api/poor-mans-logger">PoorMansLoggerImpl</link>
and
  +                    therefore log to <code>stdout</code>. You can define the
log level of the boot logger via
  +                    the <code>OJB.bootLogLevel</code> system property. Per
default, <strong>WARN</strong> is used.
                   </p>
               </section>
               
  @@ -144,16 +145,16 @@
                       Therefore these levels should only be used when necessary.
                   </p>
                   <p>
  -                    For example, in the <code>OJB-logging.properties</code>
file you would specify the
  -                    log levels like this:
  -                </p>
  -                <source><![CDATA[
  -org.apache.ojb.broker.core.PersistenceBrokerImpl.LogLevel=WARN
  -]]></source>
  -                <p>
  -                    Here, the default log level is set to <strong>ERROR</strong>,
and for the individual
  -                    components <code>PersistenceBrokerImpl</code> and <code>RepositoryXmlHandler</code>
  -                    to <strong>WARN</strong>.
  +                	There are two special loggers to be aware of. The <strong>boot logger</strong>
is the
  +                	logger used by the logging component itself as well as a few other core
components.
  +                	It will therefore always use the
  +                	<link href="ext:api/poor-mans-logger">PoorMansLoggerImpl</link>
logging implementation.
  +                	You can configure its logging level via the <code>OJB.bootLogLevel</code>
system
  +                	property.<br/>
  +                	The <strong>default logger</strong> is denoted in the <code>OJB-logging.properties</code>
  +                	file by the keyword <code>DEFAULT</code> instead of the class
name. It is used
  +                	by components that don't require their own logging configuration (usually
because
  +                	they are rather small components). 
                   </p>
               </section>
           </section>
  @@ -182,6 +183,9 @@
   
   # Global default log level used for all logging entities if not specified
   ROOT.LogLevel=ERROR
  +
  +# The log level of the default logger
  +DEFAULT.LogLevel=WARN
   
   # Logger for PersistenceBrokerImpl class
   org.apache.ojb.broker.core.PersistenceBrokerImpl.LogLevel=WARN
  
  
  

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


Mime
View raw message