org.objectweb.medor.lib

Class Log

Implemented Interfaces:
LoggerFactory

public class Log
extends java.lang.Object
implements LoggerFactory

This class references the logger factory used in MEDOR. A default logger factory is instanciated. It is based on a printwriter implementation which by default logs anything.

Author:
S.Chassande-Barrioz

Field Summary

static boolean
DEBUG
static String
DEFAULT_LOGGER_FACTORY
Default name of the logger factory
static String
MEDOR_PREFIX
static LoggerFactory
loggerFactory

Method Summary

Logger
getLogger(String s)
Logger
getLogger(String s, String s1)
static LoggerFactory
getLoggerFactory()
static LoggerFactory
getLoggerFactory(String lfClassName)
Logger[]
getLoggers()
String
getPropertiesFileName()
String
getResourceBundleName()
static LoggerFactory
loadLoggerFactory(Properties prop)
Gets a new LoggerFactory
static LoggerFactory
loadLoggerFactory(String propFileName)
Gets a new LoggerFactory
void
setPropertiesFileName(String propfn)
void
setResourceBundleName(String s)

Field Details

DEBUG

public static final boolean DEBUG

Field Value:
false


DEFAULT_LOGGER_FACTORY

public static final String DEFAULT_LOGGER_FACTORY
Default name of the logger factory


MEDOR_PREFIX

public static final String MEDOR_PREFIX


loggerFactory

public static LoggerFactory loggerFactory

Method Details

getLogger

public Logger getLogger(String s)


getLogger

public Logger getLogger(String s,
                        String s1)


getLoggerFactory

public static LoggerFactory getLoggerFactory()


getLoggerFactory

public static LoggerFactory getLoggerFactory(String lfClassName)
            throws Exception


getLoggers

public Logger[] getLoggers()


getPropertiesFileName

public String getPropertiesFileName()


getResourceBundleName

public String getResourceBundleName()


loadLoggerFactory

public static LoggerFactory loadLoggerFactory(Properties prop)
            throws Exception
Gets a new LoggerFactory

Parameters:
prop - properties containing logger.factory and log.conf.file

Returns:
the build LoggerFactory


loadLoggerFactory

public static LoggerFactory loadLoggerFactory(String propFileName)
            throws Exception
Gets a new LoggerFactory

Parameters:
propFileName - properties containing logger.factory and log.conf.file

Returns:
the build LoggerFactory


setPropertiesFileName

public void setPropertiesFileName(String propfn)


setResourceBundleName

public void setResourceBundleName(String s)