ch.uzh.ifi.attempto.base
Class Logger

java.lang.Object
  extended by ch.uzh.ifi.attempto.base.Logger

public class Logger
extends java.lang.Object

This class is used to log the events on the server.

Author:
Tobias Kuhn

Constructor Summary
Logger(java.lang.String fileName, int sessionID)
          Creates a new logger instance for the given file and session id.
Logger(java.lang.String fileName, java.lang.String username, int sessionID)
          Creates a new logger instance for the given file, user name, and session id.
 
Method Summary
 void log(java.lang.String type, java.lang.String text)
          Writes a log entry into the log file of the respective ontology.
 void setUsername(java.lang.String username)
          Sets the user name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger(java.lang.String fileName,
              java.lang.String username,
              int sessionID)
Creates a new logger instance for the given file, user name, and session id.

Parameters:
fileName - The name of the log file.
username - The user name.
sessionID - The session id.

Logger

public Logger(java.lang.String fileName,
              int sessionID)
Creates a new logger instance for the given file and session id.

Parameters:
fileName - The name of the log file.
sessionID - The session id.
Method Detail

setUsername

public void setUsername(java.lang.String username)
Sets the user name.

Parameters:
username - The user name.

log

public void log(java.lang.String type,
                java.lang.String text)
Writes a log entry into the log file of the respective ontology.

Parameters:
type - The type of the log entry.
text - The text of the log entry.


Copyright 2008-2012, AceWiki developers