Java‎ > ‎Java Logging‎ > ‎

commons-logging discovery process

posted Nov 1, 2008, 7:17 PM by Isaac Levin
Apache commons logging uses following discovery process:

  1. If file named commons-logging.properties exists in the class path and contains org.apache.commons.logging.Log=[L], then use [L] as logging package. [L] can be org.apache.commons.logging.impl.Log4JLogger or org.apache.commons.logging.impl.Jdk14Logger
  2. Use org.apache.commons.logging.Log=[L] taken from system property if available.
  3. Use Log4J if it can be found in the classpath
  4. Use Java Logging API if running on JDK 1.4 and up
  5. Use SimpleLog that sends all the messages to STDERR

Comments