Class FacesRequestLogger

    • Constructor Detail

      • FacesRequestLogger

        public FacesRequestLogger()
        Listen on any phase.
    • Method Detail

      • getLogDetails

        protected Map<String,​Object> getLogDetails​(FacesContext context)
        You can override this if you need more fine grained control over log details.
        Parameters:
        context - The involved faces context.
        Returns:
        Log details.
      • getUserDetails

        protected Map<String,​Object> getUserDetails​(FacesContext context)
        You can override this if you need more fine grained control over logging of user details.
        Parameters:
        context - The involved faces context.
        Returns:
        User details.
      • getActionDetails

        protected Map<String,​Object> getActionDetails​(FacesContext context)
        You can override this if you need more fine grained control over logging of action details.
        Parameters:
        context - The involved faces context.
        Returns:
        Action details.
      • getRequestParameters

        protected Map<String,​String> getRequestParameters​(FacesContext context)
        You can override this if you need more fine grained control over logging of request parameters.
        Parameters:
        context - The involved faces context.
        Returns:
        Request parameters.
      • getPasswordRequestParameterPattern

        protected Pattern getPasswordRequestParameterPattern​(FacesContext context)
        You can override this if you need to change the default pattern for password based request parameters which will be filtered in getRequestParameters(FacesContext). The default pattern matches every request parameter name ending with "password" or "token", case insensitive.
        Parameters:
        context - The involved faces context.
        Returns:
        Pattern for password request parameters.
      • getFacesMessages

        protected Map<String,​List<String>> getFacesMessages​(FacesContext context)
        You can override this if you need more fine grained control over logging of faces messages.
        Parameters:
        context - The involved faces context.
        Returns:
        Faces messages.