rice.environment.logging.simple
Class SimpleLogger
java.lang.Object
rice.environment.logging.simple.SimpleLogger
- All Implemented Interfaces:
- Logger
- public class SimpleLogger
- extends java.lang.Object
- implements Logger
This logger writes its name:time:message to the printstream provided, unless
the priority is lower than the minimumPriority.
- Version:
- $Id: pretty.settings,v 1.3 2005/03/11 20:22:33 jeffh Exp $
- Author:
- Jeff Hoye
Method Summary |
void |
log(int priority,
java.lang.String message)
Prints out loggerName:currentTime:message |
void |
logException(int priority,
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,
SimpleLogManager slm,
TimeSource time,
int minPriority)
- Constructor.
- Parameters:
loggerName
- the name of this logger.time
- the timesource.minPriority
- the minimum priority to display.slm
- DESCRIBE THE PARAMETER
log
public void log(int priority,
java.lang.String message)
- Prints out loggerName:currentTime:message
- Specified by:
log
in interface Logger
- Parameters:
priority
- DESCRIBE THE PARAMETERmessage
- DESCRIBE THE PARAMETER
logException
public void logException(int priority,
java.lang.Throwable exception)
- Prints out logger:currentTime:exception.stackTrace();
- Specified by:
logException
in interface Logger
- Parameters:
priority
- DESCRIBE THE PARAMETERexception
- DESCRIBE THE PARAMETER
Copyright © 2001-2005 - Rice Pastry.