db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jdo Wiki] Update of "LoggingDetails" by MichaelWatzek
Date Tue, 06 Sep 2005 14:57:00 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jdo Wiki" for change notification.

The following page has been changed by MichaelWatzek:
http://wiki.apache.org/jdo/LoggingDetails

------------------------------------------------------------------------------
  
  A TCK run involves several tools/components. Each of these components use standard or proprietary
logging implementations:
  
-  * '''Derby''' uses propriatary logging.
+  * '''Derby''' uses proprietary logging.
   * '''JPOX''' uses Log4J.
   * '''Spring``Framework''' (called by TCK) uses Apache commons-logging.
   * '''TCK testcases''' use Apache Commons-Logging.
@@ -40, +40 @@

  
  We provide another properties file configuring JDK 1.4 logging. This file may be used by
implementations under test. Besides, it is used if Apache Commons-Logging is configured to
run with JDK 1.4 logging.
  
- = TCK20 Logger instances =
+ = TCK20 Logger Instances =
  
  The TCK uses the following logger instances:
  
- || '''Logger instance''' || '''Log level''' || '''Component''' ||
+ || '''Logger Instance''' || '''Log Level''' || '''Component''' ||
  || org.apache.jdo.tck || INFO || TCK test cases ||
  || org.apache.jdo.tck.pc.company.Company``Model``Reader || ERROR || Spring``Framework ||
  || org.springframework || ERROR || Spring``Framework ||
@@ -53, +53 @@

  
  '''''Note''': Spring``Framework classes write log messages using log level `INFO`. Since
we do not want to see Spring``Framework `INFO` log messages, we set the log level of Spring``Framework
logger instances to `ERROR`. Due to the fact that TCK class `org.apache.jdo.tck.pc.company.Company``Model``Reader`
extends a Spring``Framework class which retrieves a logger instance calling `LogFactory.getLog(getClass())`,
we have to define a logger instance on class `org.apache.jdo.tck.pc.company.Company``Model``Reader`.''
  
- = TCK20 Logging Configuration for JDO vendors =
+ = TCK20 Logging Configuration for JDO Vendors =
  
  JDO implementations using Log4J or JDK 1.4 logging may use specific file appender or file
handler implementations of tck20 in order to write logging output to directory `tck20/target/logs/<timestamp>/`.
This may be achieved by editing file `tck20/test/log4j.properties`: 
  
  {{{
  # log4j vendor specific appender
- log4j.appender.vendor = org.apache.jdo.tck.util.TCKFileAppender
+ log4j.appender.<vendor> = org.apache.jdo.tck.util.TCKFileAppender
- log4j.appender.vendor.File = vendor.txt
+ log4j.appender.<vendor>.File = <vendor>.txt
  }}}
  
  or by editing file `tck20/test/logging.properties`:
@@ -68, +68 @@

  {{{
  # JDK 1.4 vendor specific handler
  handlers = org.apache.jdo.tck.util.TCKFileHandler
- org.apache.jdo.tck.util.TCKFileHandler.fileName = vendor.txt
+ org.apache.jdo.tck.util.TCKFileHandler.fileName = <vendor>.txt
  org.apache.jdo.tck.util.TCKFileHandler.level = FINEST
  }}}
  
@@ -97, +97 @@

  
  Apache Commons-Logging allows to switch between different logging implementations (including
JDK1.4 logging, Log4J and Apache's simple logging implementation). There are three properties
files to configure logging:
  
- || '''Properties file''' || '''Description''' ||
+ || '''Properties File''' || '''Description''' ||
  || common-logging.properties || Specifies the logging implementation to use. ||
  || logging.properties || Logger configuration when using JDK 1.4 logging. ||
  || log4j.properties || Logger configuration when using Log4J logging. ||
@@ -118, +118 @@

  
  The ri11 sources use the following logger instances:
  
+ || '''Logger Instance''' || '''Log Level''' || '''Component''' ||
- || '''org.apache.jdo.impl.fostore''' || '''File Object Store implementation''' ||
+ || org.apache.jdo.impl.fostore || File Object Store implementation ||
  || org.apache.jdo.impl.jdoql||JDOQL query runtime ||
  || org.apache.jdo.impl.jdoql.jdoqlc||JDOQL query compiler ||
  || org.apache.jdo.impl.model.jdo||JDOModel implementation ||

Mime
View raw message