Rice Pastry API

rice.environment.logging.simple
Class SimpleLogger

java.lang.Object
  extended byrice.environment.logging.Logger
      extended byrice.environment.logging.HeirarchyLogger
          extended byrice.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

Field Summary
 
Fields inherited from class rice.environment.logging.HeirarchyLogger
useDefault
 
Fields inherited from class rice.environment.logging.Logger
ALL, CONFIG, FINE, FINER, FINEST, INFO, level, OFF, SEVERE, WARNING
 
Constructor Summary
SimpleLogger(java.lang.String loggerName, AbstractLogManager alm, int level, boolean useDefault)
          Constructor.
 
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
 

Constructor Detail

SimpleLogger

public SimpleLogger(java.lang.String loggerName,
                    AbstractLogManager alm,
                    int level,
                    boolean useDefault)
Constructor.

Parameters:
loggerName - the name of this logger.
alm - DESCRIBE THE PARAMETER
level - DESCRIBE THE PARAMETER
useDefault - DESCRIBE THE PARAMETER
Method Detail

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 PARAMETER
exception - DESCRIBE THE PARAMETER

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection