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

java.lang.Object
  extended byorg.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,v 1.18.2.1 2004/11/08 18:16:37 arminw Exp $
Author:
Thomas Mahler, Leandro Rodrigo Saad Cruz
See Also:
jakarta-log4j

Field Summary
static LoggerFactoryImpl INSTANCE
           
 
Method Summary
 Logger getBootLogger()
          returns a minimal logger that needs no configuration and can thus be safely used during OJB boot phase (i.e.
 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

INSTANCE

public static final LoggerFactoryImpl INSTANCE
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 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2