| java.lang.Object org.jacorb.util.ConsoleLoggerFactory
ConsoleLoggerFactory | public class ConsoleLoggerFactory implements LoggerFactory(Code) | | ConsoleLoggerFactory is a very simple example to demonstrate
overriding the default logger factory.
author: Nick Cross version: $Id: ConsoleLoggerFactory.java,v 1.1 2006/06/21 14:47:59 alphonse.bendt Exp $ |
Constructor Summary | |
public | ConsoleLoggerFactory() ConsoleLoggerFactory creates a new Avalon console logger. |
ConsoleLoggerFactory | public ConsoleLoggerFactory()(Code) | | ConsoleLoggerFactory creates a new Avalon console logger.
|
configure | public void configure(Configuration arg0) throws ConfigurationException(Code) | | |
getLoggingBackendName | public String getLoggingBackendName()(Code) | | getLoggingBackendName returns the name of the backend.
the name of the actual logging mechanism, e.g., "logkit" |
getNamedLogger | public Logger getNamedLogger(String name)(Code) | | getNamedLogger returns the logger for name. As this is
an example it simply returns the console target.
Parameters: name - a String value a console Logger for a given name |
getNamedLogger | public Logger getNamedLogger(String name, String fileName, long maxFileSize) throws java.io.IOException(Code) | | getNamedLogger returns the logger for name. As this is
an example it simply returns the console target.
Parameters: name - a String value Parameters: fileName - a String value Parameters: maxFileSize - a long value a name Logger for a given file name and max size exception: java.io.IOException - if an error occurs |
getNamedRootLogger | public Logger getNamedRootLogger(String name)(Code) | | getNamedRootLogger returns the logger for name. As this is
an example it simply returns the console target.
Parameters: name - a String value a console Logger for a given name |
setDefaultLogFile | public void setDefaultLogFile(String fileName, long maxLogSize) throws java.io.IOException(Code) | | Set the file name and max file size for logging to a file
Parameters: fileName - a String value Parameters: maxLogSize - a long value exception: java.io.IOException - if an error occurs |
|
|