[logback-user] default delimiter for MDC?
Yoni Moses
yoni.moses at gmail.com
Mon May 6 10:20:26 CEST 2013
Done.
Thanks.
On Mon, May 6, 2013 at 12:28 AM, ceki <ceki at qos.ch> wrote:
> 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
> ______________________________**_________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/**listinfo/logback-user<http://mailman.qos.ch/mailman/listinfo/logback-user>
>
--
Cheers,
Yoni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20130506/4ead2d79/attachment.html>
More information about the Logback-user
mailing list