Test for Slf4jEventHandler. See #1625

* Test of MDC parameters and other output using a custom logback appender
* Logback test dependency
* Changed to encoding instead of deprecated layout
This commit is contained in:
Patrik Nordwall 2012-02-07 11:21:49 +01:00
parent 50d107e150
commit 4e00eb889f
7 changed files with 164 additions and 11 deletions

View file

@ -218,9 +218,9 @@ Mapped Diagnostic Context (MDC) with attribute name ``sourceThread``.
With Logback the thread name is available with ``%X{sourceThread}`` specifier within the pattern layout configuration::
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout>
<encoder>
<pattern>%date{ISO8601} %-5level %logger{36} %X{sourceThread} - %msg%n</pattern>
</layout>
</encoder>
</appender>
.. note::
@ -235,9 +235,9 @@ is available for associating log messages e.g. with members of a router. This
information is available in the MDC with attribute name ``akkaSource``::
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout>
<encoder>
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
</layout>
</encoder>
</appender>
For more details on what this attribute contains—also for non-actors—please see