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
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.-
ps
- the stream to print to.-
time
- the timesource.-
minPriority
- the minimum priority to display.
log
public void log(java.lang.String message)
- Prints out loggerName:currentTime:message
-
- Specified by:
-
log
in class Logger
-
- Parameters:
-
message
- the message to print
logException
public void logException(java.lang.String message,
java.lang.Throwable exception)
- Prints out logger:currentTime:exception.stackTrace();
-
- Specified by:
-
logException
in class Logger
-
-
exception
- the exception to print
Copyright © 2001-2005 - Rice Pastry.