Class MdcConfigurationProperties

java.lang.Object
org.apache.camel.main.MdcConfigurationProperties
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.camel.spi.BootstrapCloseable

@Configurer(extended=true) public class MdcConfigurationProperties extends Object implements org.apache.camel.spi.BootstrapCloseable
Global configuration for MDC
  • Constructor Details

  • Method Details

    • end

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
      To enable MDC service
    • getCustomExchangeHeaders

      public String getCustomExchangeHeaders()
    • setCustomExchangeHeaders

      public void setCustomExchangeHeaders(String customExchangeHeaders)
      Provide the headers you would like to use in the logging. Use `*` value to include all available headers
    • getCustomExchangeProperties

      public String getCustomExchangeProperties()
    • setCustomExchangeProperties

      public void setCustomExchangeProperties(String customExchangeProperties)
      Provide the properties you would like to use in the logging. Use `*` value to include all available properties
    • withEnabled

      public MdcConfigurationProperties withEnabled(boolean enabled)
      To enable MDC service
    • withCustomExchangeHeaders

      public MdcConfigurationProperties withCustomExchangeHeaders(String customExchangeHeaders)
      Provide the headers you would like to use in the logging. Use `*` value to include all available headers
    • withCustomExchangeProperties

      public MdcConfigurationProperties withCustomExchangeProperties(String customExchangeProperties)
      Provide the properties you would like to use in the logging. Use `*` value to include all available properties