logging.loggers
Class MultiLogger
java.lang.Object
logging.loggers.Logger
logging.loggers.MultiLogger
- public class MultiLogger
- extends Logger
Class the sends logs to multiple encased loggers.
|
Constructor Summary |
MultiLogger(java.lang.String params)
Sends logs to the encased Logger classes. |
|
Method Summary |
void |
log(java.lang.String user,
java.lang.String app,
java.lang.String originator,
java.lang.String event1,
java.lang.String event2,
java.lang.String state1,
java.lang.String state2)
Logs anything to given type of log file. |
void |
log(java.lang.String msg,
java.lang.Throwable t)
Logs the given message and Throwable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logs
protected Logger[] logs
MultiLogger
public MultiLogger(java.lang.String params)
- Sends logs to the encased Logger classes.
- Parameters:
params - This constructor expects to get a String with
a space, comma or semicolon delimited list of fully qualified
logger classnames with the string parameters listed
in paratheses after each class name.
The following are valid examples of parameter values:
- new MultiLogger("");
- new MultiLogger("logging.loggers.NullLogger();newlogs.FancyLogger(level=5)");
- new MultiLogger("logging.loggers.NullLogger();newlogs.FancyLogger(level=5)");
The first example does not perform any logging.
The parameter strings for the encased Loggers should not be
enclosed in quotes.
It is not possible to include a close paren ')' in a parameter string.
Amoung other things, this means that a MultiLogger cannot
encase other MultiLoggers.
log
public void log(java.lang.String user,
java.lang.String app,
java.lang.String originator,
java.lang.String event1,
java.lang.String event2,
java.lang.String state1,
java.lang.String state2)
- Description copied from class:
Logger
- Logs anything to given type of log file.
- Specified by:
log in class Logger
log
public void log(java.lang.String msg,
java.lang.Throwable t)
- Description copied from class:
Logger
- Logs the given message and Throwable.
- Specified by:
log in class Logger
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.