ojb.broker.util.logging
Class LoggerFactory

java.lang.Object
  |
  +--ojb.broker.util.logging.LoggerFactory

public class LoggerFactory
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.


Constructor Summary
LoggerFactory()
           
 
Method Summary
static 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).
static Logger getDefaultLogger()
          returns the default logger.
static Logger getLogger(java.lang.Class clazz)
          returns a Logger.
static Logger getLogger(java.lang.String pLoggerName)
          returns a Logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerFactory

public LoggerFactory()
Method Detail

getBootLogger

public static 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 static 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 static 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 static Logger getLogger(java.lang.String pLoggerName)
returns a Logger.

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


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04