ucr.core
Class Log

java.lang.Object
  extended byucr.core.Log

public class Log
extends java.lang.Object

Basic logging


Field Summary
private static java.io.RandomAccessFile errorFile
           
private static Log log
           
private static java.io.RandomAccessFile logFile
           
 
Constructor Summary
protected Log()
           
 
Method Summary
static Log getLog()
          Access the log
private  void log(java.io.RandomAccessFile file, java.lang.String logString)
          Rights the string to the log
 void log(java.lang.Throwable t)
          Logs an exception
 void logDebug(java.lang.String txt)
          Logs debug information
 void logError(java.lang.String txt)
          Logs an error
 void logInformation(java.lang.String txt)
          Logs information
private  void logToDebug(java.lang.String logString)
          Writes a log to the debug log
private  void logToError(java.lang.String logString)
          Writes a log to the error log
 void logUnexpectedException(java.lang.Throwable t)
          Logs an unexcpected exception, some exceptions, such as IO problems are to be expected
 void logWarning(java.lang.String txt)
          Logs a warning
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

logFile

private static java.io.RandomAccessFile logFile

errorFile

private static java.io.RandomAccessFile errorFile
Constructor Detail

Log

protected Log()
Method Detail

getLog

public static Log getLog()
Access the log


logUnexpectedException

public void logUnexpectedException(java.lang.Throwable t)
Logs an unexcpected exception, some exceptions, such as IO problems are to be expected


log

public void log(java.lang.Throwable t)
Logs an exception


logError

public void logError(java.lang.String txt)
Logs an error


logWarning

public void logWarning(java.lang.String txt)
Logs a warning


logDebug

public void logDebug(java.lang.String txt)
Logs debug information


logInformation

public void logInformation(java.lang.String txt)
Logs information


logToError

private void logToError(java.lang.String logString)
Writes a log to the error log


logToDebug

private void logToDebug(java.lang.String logString)
Writes a log to the debug log


log

private void log(java.io.RandomAccessFile file,
                 java.lang.String logString)
Rights the string to the log


main

public static void main(java.lang.String[] args)