Object LogbackAccessHackyLoggingOverrides

  • All Implemented Interfaces:

    
    public class LogbackAccessHackyLoggingOverrides
    
                        

    This is a hacky workaround for https://github.com/akkinoc/logback-access-spring-boot-starter/issues/98. A user who wants to modify this logic should copy this class and modify it, and make sure the modified class has a higher classloader priority. Please note that this is a temporary solution.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String overriddenRequestBody(HttpServletRequest request) Returning null means no override.
      final static String overriddenResponseBody(HttpServletRequest request, HttpServletResponse response) Returning null means no override.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • overriddenRequestBody

         final static String overriddenRequestBody(HttpServletRequest request)

        Returning null means no override. Returning non-null value will result in that value being logged instead of request body.

      • overriddenResponseBody

         final static String overriddenResponseBody(HttpServletRequest request, HttpServletResponse response)

        Returning null means no override. Returning non-null value will result in that value being logged instead of response body.