org.springframework.http.codec

Class LoggingCodecSupport

  • java.lang.Object
    • org.springframework.http.codec.LoggingCodecSupport
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected Log logger 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isEnableLoggingRequestDetails()
      Whether any logging of values being encoded or decoded is explicitly disabled regardless of log level.
      void setEnableLoggingRequestDetails(boolean enable)
      Whether to log form data at DEBUG level, and headers at TRACE level.
      • Methods inherited from class java.lang.Object

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

      • logger

        protected final Log logger
    • Constructor Detail

      • LoggingCodecSupport

        public LoggingCodecSupport()
    • Method Detail

      • setEnableLoggingRequestDetails

        public void setEnableLoggingRequestDetails(boolean enable)
        Whether to log form data at DEBUG level, and headers at TRACE level. Both may contain sensitive information.

        By default set to false so that request details are not shown.

        Parameters:
        enable - whether to enable or not
      • isEnableLoggingRequestDetails

        public boolean isEnableLoggingRequestDetails()
        Whether any logging of values being encoded or decoded is explicitly disabled regardless of log level.