Rice Pastry API

rice.pastry
Class Log

java.lang.Object
  |
  +--rice.pastry.Log

public class Log
extends java.lang.Object

A fairly rudimentary Log class for the moment. Usage: if (Log.ifp(v)) System.out.println("foo"); Conventions: Use 5 for most messages, seen by default. Use 6 or 7 for junky informational messages.

Version:
$Id: Log.java,v 1.2 2002/04/04 01:17:16 ssiyer Exp $
Author:
Sitaram Iyer

Constructor Summary
Log()
           
 
Method Summary
static boolean ifp(int v)
          Called before every println, to check if verbosity levels are okay.
static void init(java.lang.String[] args)
          Called by Pastry applications to parse for verbosity options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log()
Method Detail

init

public static void init(java.lang.String[] args)
Called by Pastry applications to parse for verbosity options.

Parameters:
args - Command-line arguments.

ifp

public static boolean ifp(int v)
Called before every println, to check if verbosity levels are okay.

Parameters:
v - required verbosity
Returns:
true if verbosity is leq v.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection