Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.3 2005/03/11 00:58:10 jeffh 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.