logback-spring.xml 539 B

1234567891011121314
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE configuration>
  3. <configuration>
  4. <include resource="org/springframework/boot/logging/logback/base.xml"/>
  5. <appender name="LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
  6. <destination>localhost:4560</destination>
  7. <encoder charset="UTF-8" class="net.logstash.logback.encoder.LogstashEncoder" />
  8. </appender>
  9. <root level="INFO">
  10. <appender-ref ref="LOGSTASH" />
  11. <appender-ref ref="CONSOLE" />
  12. </root>
  13. </configuration>