Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lilacsoftware.orca.applets
Class Debug  view Debug download Debug.java

java.lang.Object
  extended bycom.lilacsoftware.orca.applets.Debug

public class Debug
extends java.lang.Object

This class implements a simple Debug Tool.


Field Summary
private static Debug _instance
           
private  int _loglevel
           
private  java.io.PrintWriter _out
           
 
Constructor Summary
private Debug()
           
 
Method Summary
 void close()
          Closes log file.
static Debug getInstance()
          Returns Debug instance.
 void init(java.lang.String filename, int level)
          Inits log file.
 void log(int level, java.lang.String msg)
          Sends message to log file.
 void setLogLevel(int level)
          Sets log level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

private static Debug _instance

_out

private java.io.PrintWriter _out

_loglevel

private int _loglevel
Constructor Detail

Debug

private Debug()
Method Detail

getInstance

public static Debug getInstance()
Returns Debug instance.


init

public void init(java.lang.String filename,
                 int level)
Inits log file.


close

public void close()
Closes log file.


setLogLevel

public void setLogLevel(int level)
Sets log level.


log

public void log(int level,
                java.lang.String msg)
Sends message to log file.