org.apache.ojb.broker.util.logging
Class LoggerFactoryImpl

java.lang.Object
  extended by org.apache.ojb.broker.util.logging.LoggerFactoryImpl

public class LoggerFactoryImpl
extends java.lang.Object

The factory class LoggerFactory can be used to create Logger instances. The Logger-implementation class served by the factory is configured by settings in the OJB.properties file.

Version:
$Id: LoggerFactoryImpl.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Thomas Mahler, Leandro Rodrigo Saad Cruz
See Also:
jakarta-log4j

Field Summary
static java.lang.String BOOT_LOG_LEVEL_STR
           
 
Method Summary
 Logger getBootLogger()
          returns a minimal logger that needs no configuration and can thus be safely used during OJB boot phase (i.e. when OJB.properties have not been loaded).
 Logger getDefaultLogger()
          returns the default logger.
static LoggerFactoryImpl getInstance()
           
 Logger getLogger(java.lang.Class clazz)
          returns a Logger.
 Logger getLogger(java.lang.String loggerName)
          returns a Logger.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOT_LOG_LEVEL_STR

public static final java.lang.String BOOT_LOG_LEVEL_STR
See Also:
Constant Field Values
Method Detail

getInstance

public static LoggerFactoryImpl getInstance()

getBootLogger

public Logger getBootLogger()
returns a minimal logger that needs no configuration and can thus be safely used during OJB boot phase (i.e. when OJB.properties have not been loaded).

Returns:
Logger the OJB BootLogger

getDefaultLogger

public Logger getDefaultLogger()
returns the default logger. This Logger can be used when it is not appropriate to use a dedicated fresh Logger instance.

Returns:
default Logger

getLogger

public Logger getLogger(java.lang.Class clazz)
returns a Logger. The Logger is named after the full qualified name of input parameter clazz

Parameters:
clazz - the Class which name is to be used as name
Returns:
Logger the returned Logger

getLogger

public Logger getLogger(java.lang.String loggerName)
returns a Logger.

Parameters:
loggerName - the name of the Logger
Returns:
Logger the returned Logger


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30