|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacorb.util.ConsoleLoggerFactory
public class ConsoleLoggerFactory
ConsoleLoggerFactory
is a very simple example to demonstrate
overriding the default logger factory.
Constructor Summary | |
---|---|
ConsoleLoggerFactory()
ConsoleLoggerFactory creates a new Avalon console logger. |
Method Summary | |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration arg0)
|
java.lang.String |
getLoggingBackendName()
getLoggingBackendName returns the name of the backend. |
org.apache.avalon.framework.logger.Logger |
getNamedLogger(java.lang.String name)
getNamedLogger returns the logger for name. |
org.apache.avalon.framework.logger.Logger |
getNamedLogger(java.lang.String name,
java.lang.String fileName,
long maxFileSize)
getNamedLogger returns the logger for name. |
org.apache.avalon.framework.logger.Logger |
getNamedRootLogger(java.lang.String name)
getNamedRootLogger returns the logger for 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 ConsoleLoggerFactory()
ConsoleLoggerFactory
creates a new Avalon console logger.
Method Detail |
---|
public java.lang.String getLoggingBackendName()
getLoggingBackendName
returns the name of the backend.
getLoggingBackendName
in interface org.jacorb.config.LoggerFactory
public org.apache.avalon.framework.logger.Logger getNamedLogger(java.lang.String name)
getNamedLogger
returns the logger for name. As this is
an example it simply returns the console target.
getNamedLogger
in interface org.jacorb.config.LoggerFactory
name
- a String
value
public org.apache.avalon.framework.logger.Logger getNamedRootLogger(java.lang.String name)
getNamedRootLogger
returns the logger for name. As this is
an example it simply returns the console target.
getNamedRootLogger
in interface org.jacorb.config.LoggerFactory
name
- a String
value
public org.apache.avalon.framework.logger.Logger getNamedLogger(java.lang.String name, java.lang.String fileName, long maxFileSize) throws java.io.IOException
getNamedLogger
returns the logger for name. As this is
an example it simply returns the console target.
getNamedLogger
in interface org.jacorb.config.LoggerFactory
name
- a String
valuefileName
- a String
valuemaxFileSize
- a long
value
java.io.IOException
- if an error occurspublic void setDefaultLogFile(java.lang.String fileName, long maxLogSize) throws java.io.IOException
setDefaultLogFile
in interface org.jacorb.config.LoggerFactory
fileName
- a String
valuemaxLogSize
- a long
value
java.io.IOException
- if an error occurspublic void configure(org.apache.avalon.framework.configuration.Configuration arg0) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |