Fork me on GitHub

Plugin accesslogger

Introduction

Access Log service

  • Report all actions regarding authentication, user or rights management.
  • All messages should contain the application Id, the event type, a specific application event code, the logged user, and specific contextual data.
  • A default implementation is injected by default in lutece core context.

Configuration

Use "debug" or "trace" level for fine access control

Use "info" level otherwise

By default, Lutece authentication, user and rights management are logged at info level, and all actions and views calls are logged at trace level.

Usage

To log specific actions, use :

  • AccessLogService.getInstance( ).info( String strEventType, String strAppEventCode, String strConnectedUserLogin, Object data )
  • AccessLogService.getInstance( ).debug( String strEventType, String strAppEventCode, String strConnectedUserLogin, Object data )
  • AccessLogService.getInstance( ).trace( String strEventType, String strAppEventCode, String strConnectedUserLogin, Object data )

Event types are :

  • IAccessLogger.EVENT_TYPE_READ
  • IAccessLogger.EVENT_TYPE_CREATE
  • IAccessLogger.EVENT_TYPE_DELETE
  • IAccessLogger.EVENT_TYPE_MODIFY
  • IAccessLogger.EVENT_TYPE_CONNECT
  • IAccessLogger.EVENT_TYPE_DISCONNECT
  • IAccessLogger.EVENT_TYPE_RIGHTS