Last active
November 19, 2015 06:30
-
-
Save jcraane/7f03741c00c86eff0de4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration scan="true"> | |
<shutdownHook/> | |
<appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<charset>UTF-8</charset> | |
<Pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern> | |
</encoder> | |
</appender> | |
<!--For testing purposes only! --> | |
<!-- | |
<appender name="consoleStashAppender" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder class="net.logstash.logback.encoder.LogstashEncoder" /> | |
</appender> | |
--> | |
<appender name="stash" class="net.logstash.logback.appender.LogstashTcpSocketAppender"> | |
<destination>127.0.0.1:4560</destination> | |
<!-- encoder is required --> | |
<encoder class="net.logstash.logback.encoder.LogstashEncoder"> | |
<customFields>{"api_name":"commonapis"}</customFields> | |
</encoder> | |
</appender> | |
<logger name="my.package" level="debug" additivity="false"> | |
<appender-ref ref="consoleAppender" /> | |
<appender-ref ref="stash" /> | |
</logger> | |
<logger name="my.package.filter" level="trace" additivity="false"> | |
<appender-ref ref="stash" /> | |
</logger> | |
<root level="INFO"> | |
<appender-ref ref="consoleAppender" /> | |
<!--<appender-ref ref="consoleStashAppender" />--> | |
<appender-ref ref="stash" /> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment