de.unima.alcomox.util
Class AlcomoLogger

java.lang.Object
  extended by de.unima.alcomox.util.AlcomoLogger

public class AlcomoLogger
extends java.lang.Object

A wrapper for the log4j logging mechanism.


Constructor Summary
AlcomoLogger(java.lang.Class c)
          Constructs a wrapper logger for the log4j logger for a certain class.
 
Method Summary
 void infoP(double progress)
          Logs a double interpreted as progress in percentage as info message.
 void infoPEnd()
          Logs a end sign for a series of progress infos as info message followed by a newline.
 void infoPStart()
          Logs a start sign for a series of progress infos as info message.
 void infoPStart(java.lang.String prefixExpl)
          Logs a start sign for a series of progress infos as info message.
 void infoS(java.lang.String statement)
          Logs a statement as info message.
 void infoW(java.lang.String word)
          Logs a word as info message.
static void printTimestamps()
           
static void resetTimer()
           
static void takeTime(java.lang.String breakpoint)
           
 void warnS(java.lang.String statement)
          Logs a statement as warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlcomoLogger

public AlcomoLogger(java.lang.Class c)
Constructs a wrapper logger for the log4j logger for a certain class.

Parameters:
c - The class which activities will be logged.
Method Detail

infoPStart

public void infoPStart()
Logs a start sign for a series of progress infos as info message.

Parameters:
word -

infoPStart

public void infoPStart(java.lang.String prefixExpl)
Logs a start sign for a series of progress infos as info message.

Parameters:
prefixExpl - An explanation that prefixes the progress information.

infoPEnd

public void infoPEnd()
Logs a end sign for a series of progress infos as info message followed by a newline.

Parameters:
word -

infoW

public void infoW(java.lang.String word)
Logs a word as info message.

Parameters:
word -

infoP

public void infoP(double progress)
Logs a double interpreted as progress in percentage as info message.

Parameters:
word -

infoS

public void infoS(java.lang.String statement)
Logs a statement as info message. Message will be surrounded by [ ] followed by a newline.

Parameters:
statement -

warnS

public void warnS(java.lang.String statement)
Logs a statement as warning. Message will be surrounded by [WARNING: ] followed by a newline.

Parameters:
statement -

takeTime

public static void takeTime(java.lang.String breakpoint)

printTimestamps

public static void printTimestamps()

resetTimer

public static void resetTimer()