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.
- Author:
- Jeff Hoye
SimpleLogger
public SimpleLogger(String loggerName,
AbstractLogManager alm,
int level,
boolean useDefault)
- Constructor.
- Parameters:
loggerName - the name of this logger.ps - the stream to print to.time - the timesource.minPriority - the minimum priority to display.
log
public void log(String message)
- Prints out loggerName:currentTime:message
- Specified by:
log in class Logger
- Parameters:
message - the message to print
logException
public void logException(String message,
Throwable exception)
- Prints out logger:currentTime:exception.stackTrace();
- Specified by:
logException in class Logger
exception - the exception to print
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010. All Rights Reserved.