Class DefaultAccessLogger
- java.lang.Object
-
- fr.paris.lutece.portal.service.security.impl.DefaultAccessLogger
-
- All Implemented Interfaces:
IAccessLogger
public final class DefaultAccessLogger extends Object implements IAccessLogger
This class provides a default implementation for AccessLogger Service A specific log format can be set in the properties file - portal.defaultAccessLogger.messageFormat - portal.defaultAccessLogger.messageFormatSeparator Log lines could be certified with a hash, that could be verified, whith this property set to true : - portal.defaultAccessLogger.addHashToLogs
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_LOGGER_ACCESS_LOG
-
Constructor Summary
Constructors Constructor Description DefaultAccessLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String strEventType, String strAppEventCode, fr.paris.lutece.api.user.User connectedUser, Object data, String specificOrigin)Log a message object with the DEBUG level.voidinfo(String strEventType, String strAppEventCode, fr.paris.lutece.api.user.User connectedUser, Object data, String specificOrigin)Log a message object with the INFO level.booleanisAddHashToLogs()is addHashToLogs enabledvoidtrace(String strEventType, String strAppEventCode, fr.paris.lutece.api.user.User connectedUser, Object data, String specificOrigin)Log a message object with the TRACE level.booleanverifyMessageHash(String message)verify hashvoidwarn(String strEventType, String strAppEventCode, fr.paris.lutece.api.user.User connectedUser, Object data, String specificOrigin)Log a message object with the WARN level.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.portal.service.security.IAccessLogger
debug, info, trace, warn
-
-
-
-
Field Detail
-
DEFAULT_LOGGER_ACCESS_LOG
public static final String DEFAULT_LOGGER_ACCESS_LOG
- See Also:
- Constant Field Values
-
-
Method Detail
-
info
public void info(String strEventType, String strAppEventCode, fr.paris.lutece.api.user.User connectedUser, Object data, String specificOrigin)
Log a message object with the INFO level.- Specified by:
infoin interfaceIAccessLogger- Parameters:
strEventType- the event typestrAppEventCode- the event codeconnectedUser- the user connecteddata- the message object to logspecificOrigin- specific origin of the event to log
-
debug
public void debug(String strEventType, String strAppEventCode, fr.paris.lutece.api.user.User connectedUser, Object data, String specificOrigin)
Log a message object with the DEBUG level.- Specified by:
debugin interfaceIAccessLogger- Parameters:
strEventType- the event typestrAppEventCode- the event codeconnectedUser- the user connecteddata- the message object to logspecificOrigin- specific origin of the event to log
-
trace
public void trace(String strEventType, String strAppEventCode, fr.paris.lutece.api.user.User connectedUser, Object data, String specificOrigin)
Log a message object with the TRACE level.- Specified by:
tracein interfaceIAccessLogger- Parameters:
strEventType- the event typestrAppEventCode- the event codeconnectedUser- the user connecteddata- the message object to logspecificOrigin- specific origin of the event to log
-
warn
public void warn(String strEventType, String strAppEventCode, fr.paris.lutece.api.user.User connectedUser, Object data, String specificOrigin)
Log a message object with the WARN level.- Specified by:
warnin interfaceIAccessLogger- Parameters:
strEventType- the event typestrAppEventCode- the event codeconnectedUser- the user connecteddata- the message object to logspecificOrigin- specific origin of the event to log
-
verifyMessageHash
public boolean verifyMessageHash(String message)
verify hash- Parameters:
message-- Returns:
- true if the hash contained in the message is valid
-
isAddHashToLogs
public boolean isAddHashToLogs()
is addHashToLogs enabled- Returns:
- true if addHashToLogs enabled
-
-