- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE configuration>
- <configuration>
- <include resource="org/springframework/boot/logging/logback/base.xml"/>
- <appender name="LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
- <destination>localhost:4560</destination>
- <encoder charset="UTF-8" class="net.logstash.logback.encoder.LogstashEncoder" />
- </appender>
- <root level="INFO">
- <appender-ref ref="LOGSTASH" />
- <appender-ref ref="CONSOLE" />
- </root>
- </configuration>
|