|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.Log4jLoggerFactory
JacORB logger factory that creates named Avalon loggers with log4j as the underlying log mechanism.
JacORB log priorities for new loggers are set implicitly to either
the value of this factory's defaultPriority
field, or
via JacORB configuration properties that have the same name as the
requested logger, plus a suffix of .log.verbosity
.
Constructor Summary | |
Log4jLoggerFactory()
|
Method Summary | |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
String |
getLoggingBackendName()
Gets the name of the logging back-end mechanism. |
org.apache.avalon.framework.logger.Logger |
getNamedLogger(String name)
Gets an Avalon logger by name. |
org.apache.avalon.framework.logger.Logger |
getNamedLogger(String name,
String logFileName,
long maxLogSize)
Creates a named Avalon logger with given logFileName
and maxLogSize parameters. |
org.apache.avalon.framework.logger.Logger |
getNamedRootLogger(String name)
Gets an Avalon root logger by name. |
void |
setDefaultLogFile(String fileName,
long maxLogSize)
set the file name and max file size for logging to a file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Log4jLoggerFactory()
Method Detail |
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public final String getLoggingBackendName()
getLoggingBackendName
in interface org.jacorb.config.LoggerFactory
"log4j"
public org.apache.avalon.framework.logger.Logger getNamedLogger(String name)
getNamedLogger
in interface org.jacorb.config.LoggerFactory
name
- the name of the logger
org.apache.avalon.framework.logger.Logger
instancepublic org.apache.avalon.framework.logger.Logger getNamedRootLogger(String name)
getNamedRootLogger
in interface org.jacorb.config.LoggerFactory
name
- the name of the logger
org.apache.avalon.framework.logger.Logger
instancepublic org.apache.avalon.framework.logger.Logger getNamedLogger(String name, String logFileName, long maxLogSize) throws IOException
logFileName
and maxLogSize
parameters. This is a dummy implementation
that always return null.
getNamedLogger
in interface org.jacorb.config.LoggerFactory
name
- the name of the loggerlogFileName
- the name of the file to log tomaxLogSize
- maximum size of the log file.
IOException
public void setDefaultLogFile(String fileName, long maxLogSize) throws IOException
setDefaultLogFile
in interface org.jacorb.config.LoggerFactory
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |