rice.environment.logging.simple
Class SimpleLogger
java.lang.Object
rice.environment.logging.Logger
rice.environment.logging.HeirarchyLogger
rice.environment.logging.simple.SimpleLogger
- public class SimpleLogger
- extends HeirarchyLogger
This logger writes its name:time:message to the printstream provided, unless
the priority is lower than the minimumPriority.
- Version:
- $Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
- Author:
- Jeff Hoye
Method Summary |
void |
log(java.lang.String message)
Prints out loggerName:currentTime:message |
void |
logException(java.lang.String message,
java.lang.Throwable exception)
Prints out logger:currentTime:exception.stackTrace(); |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLogger
public SimpleLogger(java.lang.String loggerName,
AbstractLogManager alm,
int level,
boolean useDefault)
- Constructor.
- Parameters:
loggerName
- the name of this logger.alm
- DESCRIBE THE PARAMETERlevel
- DESCRIBE THE PARAMETERuseDefault
- DESCRIBE THE PARAMETER
log
public void log(java.lang.String message)
- Prints out loggerName:currentTime:message
- Specified by:
log
in class Logger
- Parameters:
message
- DESCRIBE THE PARAMETER
logException
public void logException(java.lang.String message,
java.lang.Throwable exception)
- Prints out logger:currentTime:exception.stackTrace();
- Specified by:
logException
in class Logger
- Parameters:
message
- DESCRIBE THE PARAMETERexception
- DESCRIBE THE PARAMETER
Copyright © 2001-2005 - Rice Pastry.