Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

Commit

Permalink
Adding logstash-logback dependencies to tomcat to enable logging in j…
Browse files Browse the repository at this point in the history
…son for ELK

Signed-off-by: Sun Tan <sutan@redhat.com>
  • Loading branch information
sunix committed Nov 16, 2017
1 parent fda6788 commit 4d56d47
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions che-tomcat8-slf4j-logback/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,26 @@
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</dependency>
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina-jmx-remote</artifactId>
Expand Down
6 changes: 6 additions & 0 deletions che-tomcat8-slf4j-logback/src/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@
<outputDirectory>lib</outputDirectory>
<includes>
<include>ch.qos.logback:logback-access</include>
<include>ch.qos.logback:logback-classic</include>
<include>ch.qos.logback:logback-core</include>
<include>com.fasterxml.jackson.core:jackson-annotations</include>
<include>com.fasterxml.jackson.core:jackson-core</include>
<include>com.fasterxml.jackson.core:jackson-databind</include>
<include>net.logstash.logback:logstash-logback-encoder</include>
<include>org.apache.tomcat:tomcat-catalina-jmx-remote</include>
<include>org.slf4j:slf4j-api</include>
</includes>
</dependencySet>
</dependencySets>
Expand Down
2 changes: 2 additions & 0 deletions che-tomcat8-slf4j-logback/src/assembly/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

<include optional="true" file="${che.local.conf.dir}/logback/logback-additional-appenders.xml"/>

<include optional="true" file="${catalina.home}/conf/logback-additional-appenders.xml"/>

<logger name="org.apache.catalina.loader" level="OFF"/>
<logger name="org.apache.catalina.session.PersistentManagerBase" level="OFF"/>
<logger name="org.apache.jasper.servlet.TldScanner" level="OFF"/>
Expand Down

0 comments on commit 4d56d47

Please sign in to comment.