org.gcube.application.framework.accesslogger.library.impl
Class AccessLogger

java.lang.Object
  extended by org.gcube.application.framework.accesslogger.library.impl.AccessLogger
All Implemented Interfaces:
AccessLoggerI

public class AccessLogger
extends java.lang.Object
implements AccessLoggerI

Access logger class will be used to log all the needed entries

Author:
Panagiota Koltsida, NKUA

Method Summary
static AccessLogger getAccessLogger()
          Returns the singleton access logger object
 void logEntry(java.lang.String username, java.lang.String vre, AccessLogEntry entry)
          Logs an entry to the appropriate file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAccessLogger

public static AccessLogger getAccessLogger()
Returns the singleton access logger object

Returns:
The logger

logEntry

public void logEntry(java.lang.String username,
                     java.lang.String vre,
                     AccessLogEntry entry)
Logs an entry to the appropriate file

Specified by:
logEntry in interface AccessLoggerI
Parameters:
username - The username of the current user
vre - The current VRE
entry - The type of entry that will be logged