[logback-user] default delimiter for MDC?
ceki
ceki at qos.ch
Sun May 5 23:28:22 CEST 2013
Hi Yoni,
Thank you for the config file. There is a bug in the way logback
interprets strings containing ':-'. Could you kindly file a jira issue?
Just mention that variable substitution does not work if the original
string contains ':-'.
Many thanks in advance,
On 05.05.2013 23:11, Yoni Moses wrote:
>
> <configuration>
> <conversionRule conversionWord="host"
>
> converterClass="com.zao.utilities.logging.LogbackHostConverter" />
>
>
> <conversionRule conversionWord="env"
>
> converterClass="com.zao.utilities.logging.LogbackEnvironmentConverter" />
>
> <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
> <Encoding>UTF-8</Encoding>
> <layout class="ch.qos.logback.classic.PatternLayout">
> <pattern>[%-20thread] %d %-5level %-30logger{0} - %env %host
> %X{req.xForwardedFor:-none} %X{mdc_username} %X{req.requestURI} -
> %message%n</pattern>
> </layout>
> </appender>
>
> <logger name="com.zao" level="DEBUG"/>
> <logger name="org.springframework" level="WARN"/>
> <logger name="org.springframework.beans" level="WARN"/>
> <logger name="org.springframework.social" level="INFO"/>
> <logger name="org.hibernate" level="WARN"/>
> <logger name="org.apache" level="WARN"/>
> <logger name="ch.qos" level="WARN"/>
> <logger name="org.apache.http" level="WARN"/>
>
>
> <!--
> ===========================================================================================================
> -->
> <!-- Root logger configuration
> -->
> <!--
> ===========================================================================================================
> -->
> <root level="DEBUG">
> <appender-ref ref="console"/>
> </root>
>
>
> </configuration>
--
Ceki
65% of statistics are made up on the spot
More information about the Logback-user
mailing list