lumis.util.log
Class NavigationLogger
java.lang.Object
lumis.util.log.NavigationLogger
- All Implemented Interfaces:
- INavigationLogger
- Direct Known Subclasses:
- BannerLogger
public class NavigationLogger
- extends Object
- implements INavigationLogger
A logger to log the accesses in the W3C Extended format.
This logger uses log4j, and the LumisNavigation category must be
configured to use the NavigationFileAppender
appender
for proper file output format.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
navigationLogger
protected ILogger navigationLogger
- The logger where the navigation log messages are sent to.
NavigationLogger
public NavigationLogger()
logAccess
public void logAccess(HttpServletRequest request,
SessionConfig sessionConfig,
PageConfig pageConfig,
ITransaction transaction)
- Description copied from interface:
INavigationLogger
- Logs an entry in the navigation log with the access information relative to the given request.
- Specified by:
logAccess
in interface INavigationLogger
- Parameters:
request
- the request of the access to be logged.
generateLogURI
protected void generateLogURI(HttpServletRequest request,
StringBuilder logOutput,
SessionConfig sessionConfig,
PageConfig pageConfig,
ITransaction transaction)
encodeToW3cLog
protected String encodeToW3cLog(String pStr)
- Encodes the String to a w3c log entry value. If the string is null or an empty
String, a '-' is returned. Else its space characters are replaced by '+'.
- Parameters:
pStr
- the string to be encoded.
- Returns:
- the encoded string.
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.