com.valhalla
Class Logger

java.lang.Object
  extended by com.valhalla.Logger

public class Logger
extends java.lang.Object

Class used for logging/debugging

Version:
1.0
Author:
Adam Olsen

Constructor Summary
Logger()
           
 
Method Summary
static void closeLog()
           
static void debug(int num)
           
static void debug(java.lang.Object message)
           
static void debug(java.lang.String message)
          Outputs to the console only if the "debug" system property is set.
static DebugWindow getDebugWindow()
           
static void logException(java.lang.Exception e)
          Logs an exceptions stack trace if the log file is open
static void setLogFile(java.lang.String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

logException

public static void logException(java.lang.Exception e)
Logs an exceptions stack trace if the log file is open

Parameters:
e - the exception

setLogFile

public static void setLogFile(java.lang.String file)

closeLog

public static void closeLog()

debug

public static void debug(java.lang.String message)
Outputs to the console only if the "debug" system property is set.

Parameters:
message - The message to output to the console

debug

public static void debug(java.lang.Object message)

debug

public static void debug(int num)

getDebugWindow

public static DebugWindow getDebugWindow()