org.qriterium.dogma
Class DogmaLog

java.lang.Object
  extended by org.qriterium.dogma.DogmaLog

public class DogmaLog
extends java.lang.Object

DogmaLog is a class for logging user behaviour in Dogma.

Version:
%I%, %G% As default, it uses "dogmalog.txt" as the file it saves logs to. New actions are always appended to the log-file.

Method Summary
 void addEvent(iResource r, int eventId, java.lang.String event)
          Creates a new event to the Log.
 void addEvent(iResource r, java.lang.String event)
          Creates a new event to the Log.
static DogmaLog getInstance()
          Creates a DogmaLog - instance using the singleton design-pattern.
 void writeToLog(java.lang.String line)
          Writes a string to the logfile.
 void writeToLog(java.lang.String[] lines)
          Writes a string - array to the logfile using bufferedwriter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DogmaLog getInstance()
Creates a DogmaLog - instance using the singleton design-pattern.


addEvent

public void addEvent(iResource r,
                     int eventId,
                     java.lang.String event)
Creates a new event to the Log.

Parameters:
r - The resource the event is linked to.
eventId - A event identifier for the event.
event - A description for the event.

addEvent

public void addEvent(iResource r,
                     java.lang.String event)
Creates a new event to the Log.

Parameters:
r - The resource the event is linked to.
event - A description for the event.

writeToLog

public void writeToLog(java.lang.String[] lines)
Writes a string - array to the logfile using bufferedwriter.

Parameters:
lines -

writeToLog

public void writeToLog(java.lang.String line)
Writes a string to the logfile.

Parameters:
line - the line to be written to log.