Class TenantConverter
java.lang.Object
ch.qos.logback.core.pattern.Converter<E>
ch.qos.logback.core.pattern.FormattingConverter<E>
ch.qos.logback.core.pattern.DynamicConverter<Object>
com.flowable.platform.common.logging.logback.TenantConverter
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware
,ch.qos.logback.core.spi.LifeCycle
A Logback converter that can be used to output the currently authenticated user.
It can be registered by using the following in your logback.xml file.
<configuration>
<conversionRule conversionWord="tenant"
converterClass="com.flowable.platform.common.logging.logback.TenantConverter" />
...
</configuration>
More about this can be read in the Logback custom conversion specifier documentation.
When there is no tenant then <missing>
will be used.
If it is the empty (null) tenant then <empty>
will be used.
- Author:
- Filip Hrisafov
-
Field Summary
Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started
-
Constructor Summary
-
Method Summary
Methods inherited from class ch.qos.logback.core.pattern.DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, start, stop
Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
Methods inherited from class ch.qos.logback.core.pattern.Converter
getNext, setNext
-
Constructor Details
-
TenantConverter
public TenantConverter()
-
-
Method Details
-
convert
- Specified by:
convert
in classch.qos.logback.core.pattern.Converter<Object>
-