at.gv.egiz.moodle.eidconnector.logging.impl
Class DatabaseStatisticLogger

java.lang.Object
  extended by at.gv.egiz.moodle.eidconnector.logging.impl.DatabaseStatisticLogger
All Implemented Interfaces:
StatisticLogger

public class DatabaseStatisticLogger
extends Object
implements StatisticLogger

Implementation of a statistical logger based on slf4j that returns CSV based log entries. Note that instead of commas, semicolons are used as delimiter.

Author:
AT-TUG (Thomas Knall)
See Also:
http://tools.ietf.org/html/rfc4180

Constructor Summary
DatabaseStatisticLogger()
           
 
Method Summary
 void log(Date timestamp, String assertionIssuerId, String spID, String sha1OfEID, String citizenCountryCode, Integer citizenQAALevel, Integer age, Object... others)
          Creates a log entry into the eid connector database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseStatisticLogger

public DatabaseStatisticLogger()
Method Detail

log

public void log(Date timestamp,
                String assertionIssuerId,
                String spID,
                String sha1OfEID,
                String citizenCountryCode,
                Integer citizenQAALevel,
                Integer age,
                Object... others)
Creates a log entry into the eid connector database. Note that the configuration key logger.database.enabled in category internal needs to be set to true.

Specified by:
log in interface StatisticLogger
Parameters:
timestamp - The current date.
assertionIssuerId - The identifier of the underlying S-PEPS/V-IDP instance.
spID - The identifier of the service provider being served.
sha1OfEID - A base64 encoded String of the SHA1 hash of the citizen's eIdentifier.
citizenCountryCode - The citizen's home country code (according to ISO 3166-1 alpha-2).
citizenQAALevel - The underlying QAA level.
age - The citizen's age.
others - An arbitrary number of further fields to be logged.


Copyright 2009 EGIZ. All Rights Reserved.