SHARE
TWEET

Untitled

a guest Jun 15th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration debug="false">
  3.     <include resource="org/springframework/boot/logging/logback/base.xml"/>
  4.     <appender name="logstash" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
  5.         <destination>localhost:5044</destination>
  6.         <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
  7.             <providers>
  8.                 <mdc/>
  9.                 <context/>
  10.                 <version/>
  11.                 <logLevel/>
  12.                 <loggerName/>
  13.                 <message/>
  14.                 <pattern>
  15.                     <pattern>
  16.                         {
  17.                             "appName": "order-service"
  18.                         }
  19.                     </pattern>
  20.                 </pattern>
  21.                 <threadName/>
  22.                 <stackTrace/>
  23.             </providers>
  24.         </encoder>
  25.     </appender>
  26.     <root level="INFO">
  27.         <appender-ref ref="CONSOLE"/>
  28.         <appender-ref ref="logstash"/>
  29.     </root>
  30.     <logger name="org.springframework" level="INFO"/>
  31.     <logger name="com.sohan" level="INFO"/>
  32. </configuration>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top