Package org.apache.camel.main
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()end()booleanvoidsetCustomExchangeHeaders(String customExchangeHeaders) Provide the headers you would like to use in the logging.voidsetCustomExchangeProperties(String customExchangeProperties) Provide the properties you would like to use in the logging.voidsetEnabled(boolean enabled) To enable MDC servicewithCustomExchangeHeaders(String customExchangeHeaders) Provide the headers you would like to use in the logging.withCustomExchangeProperties(String customExchangeProperties) Provide the properties you would like to use in the logging.withEnabled(boolean enabled) To enable MDC service
-
Constructor Details
-
MdcConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) To enable MDC service -
getCustomExchangeHeaders
-
setCustomExchangeHeaders
Provide the headers you would like to use in the logging. Use `*` value to include all available headers -
getCustomExchangeProperties
-
setCustomExchangeProperties
Provide the properties you would like to use in the logging. Use `*` value to include all available properties -
withEnabled
To enable MDC service -
withCustomExchangeHeaders
Provide the headers you would like to use in the logging. Use `*` value to include all available headers -
withCustomExchangeProperties
Provide the properties you would like to use in the logging. Use `*` value to include all available properties
-