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

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

public class LoggerFactory
extends java.lang.Object

This is a wrapper thta provides static accessors to LoggerFactoryImpl methods

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

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 name)
          returns a Logger.
 
Methods inherited from class java.lang.Object
equals, 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 name)
returns a Logger.

Parameters:
name - 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