|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(Configuration configuration)
|
java.lang.String |
getLoggingBackendName()
Gets the name of the logging back-end mechanism. |
Logger |
getNamedLogger(java.lang.String name)
Gets an Avalon logger by name. |
Logger |
getNamedLogger(java.lang.String name,
java.lang.String logFileName,
long maxLogSize)
Creates a named Avalon logger with given logFileName
and maxLogSize parameters. |
Logger |
getNamedRootLogger(java.lang.String name)
Gets an Avalon root logger by name. |
void |
setDefaultLogFile(java.lang.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(Configuration configuration) throws ConfigurationException
ConfigurationException
public final java.lang.String getLoggingBackendName()
"log4j"
public Logger getNamedLogger(java.lang.String name)
name
- the name of the logger
org.apache.avalon.framework.logger.Logger
instancepublic Logger getNamedRootLogger(java.lang.String name)
name
- the name of the logger
org.apache.avalon.framework.logger.Logger
instancepublic Logger getNamedLogger(java.lang.String name, java.lang.String logFileName, long maxLogSize) throws java.io.IOException
logFileName
and maxLogSize
parameters. This is a dummy implementation
that always return null.
name
- the name of the loggerlogFileName
- the name of the file to log tomaxLogSize
- maximum size of the log file.
java.io.IOException
public void setDefaultLogFile(java.lang.String fileName, long maxLogSize) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |