fi.hut.tml.xsmiles
Class Log

java.lang.Object
  extended byfi.hut.tml.xsmiles.Log

public class Log
extends java.lang.Object


Field Summary
static boolean enable_debug
           
static boolean enable_debug_source
           
static boolean enable_error_source
           
static boolean enable_info
           
 
Constructor Summary
Log()
           
 
Method Summary
static void debug(java.lang.String message)
          Output a debug message.
static void disableLogFile()
          Disable log writing to a file.
static void enableLogFile(java.lang.String filename)
          Enable log writing to a file.
static void error(java.lang.String message)
          Output an error message.
static void error(java.lang.Throwable t)
          Output an error message.
static void error(java.lang.Throwable t, java.lang.String message)
          Output an error message.
static void hookStandards(java.io.FileOutputStream fos)
           
static void info(java.lang.String message)
          Output an info message.
protected static void output(java.lang.String text)
           
protected static void outputErr(java.lang.String text)
           
protected static void outputErrln(java.lang.String text)
           
protected static void outputln(java.lang.String text)
           
static void reHookStandards()
           
static void unhookStandards()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enable_debug

public static boolean enable_debug

enable_info

public static boolean enable_info

enable_error_source

public static boolean enable_error_source

enable_debug_source

public static boolean enable_debug_source
Constructor Detail

Log

public Log()
Method Detail

debug

public static void debug(java.lang.String message)
Output a debug message. Debug messages are shown if enable_debug is true, otherwise they are discarded

Parameters:
message - a String that contains the message to be outputted.

info

public static void info(java.lang.String message)
Output an info message. Info messages are always shown.

Parameters:
message - a String that contains the message to be outputted.

error

public static void error(java.lang.String message)
Output an error message.

Parameters:
message - a String that contains the message to be outputted.

error

public static void error(java.lang.Throwable t)
Output an error message.


error

public static void error(java.lang.Throwable t,
                         java.lang.String message)
Output an error message.


enableLogFile

public static void enableLogFile(java.lang.String filename)
                          throws java.io.IOException
Enable log writing to a file.

Throws:
java.io.IOException - for JDK 1.1 compatibility.

disableLogFile

public static void disableLogFile()
Disable log writing to a file.


outputln

protected static void outputln(java.lang.String text)

output

protected static void output(java.lang.String text)

outputErrln

protected static void outputErrln(java.lang.String text)

outputErr

protected static void outputErr(java.lang.String text)

hookStandards

public static void hookStandards(java.io.FileOutputStream fos)

reHookStandards

public static void reHookStandards()

unhookStandards

public static void unhookStandards()


X-Smiles 1.2