com.xavax.xstore
Class Logger

Object
  extended byLogger

public class Logger
extends Object

Logger handles logging for the persistence framework.


Constructor Summary
Logger(int level)
          Construct a Logger.
 
Method Summary
 int level()
          Get the minimum log level.
 void level(int i)
          Set the minimum log level.
 void log(int level, String s)
          Log a message if the message level is greater than or equal to the minimum log level.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger(int level)
Construct a Logger.

Parameters:
level - the minimum log level.
Method Detail

level

public void level(int i)
Set the minimum log level. Log messages with a level greater than or equal to the minimum level will be appended to the log file.

Parameters:
i - the new minimum log level.

level

public int level()
Get the minimum log level.

Returns:
the minimum log level.

log

public void log(int level,
                String s)
Log a message if the message level is greater than or equal to the minimum log level.

Parameters:
level - the message level.
s - the message string.