[java-idp-tomcat-base] branch 8.0 updated: Add Logback access logging
Tom Zeller
tzeller at dragonacea.biz
Tue Aug 16 20:35:10 EDT 2016
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch 8.0
in repository java-idp-tomcat-base.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-tomcat-base.git;a=commit;h=a54ab7521f8500179e95446e970e814136fac2ce
The following commit(s) were added to refs/heads/8.0 by this push:
new a54ab75 Add Logback access logging
a54ab75 is described below
commit a54ab7521f8500179e95446e970e814136fac2ce
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Tue Aug 16 19:32:08 2016 -0500
Add Logback access logging
---
pom.xml | 21 +++++++++++++++++++++
.../resources/tomcat-base/conf/logback-access.xml | 14 ++++++++++++++
src/main/resources/tomcat-base/conf/server.xml | 2 ++
3 files changed, 37 insertions(+)
diff --git a/pom.xml b/pom.xml
index d0fe3f7..08cbbdb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -140,6 +140,27 @@
</artifactItems>
</configuration>
</execution>
+ <!-- Copy Logback dependencies to tomcat-base/lib/ directory. -->
+ <execution>
+ <id>copy-tomcat-logging-dependencies</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-core</artifactId>
+ </artifactItem>
+ <artifactItem>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-access</artifactId>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${assemblyDirectory}/tomcat-base/lib/</outputDirectory>
+ </configuration>
+ </execution>
</executions>
</plugin>
<!-- Assemble -->
diff --git a/src/main/resources/tomcat-base/conf/logback-access.xml b/src/main/resources/tomcat-base/conf/logback-access.xml
new file mode 100644
index 0000000..3fa6c6f
--- /dev/null
+++ b/src/main/resources/tomcat-base/conf/logback-access.xml
@@ -0,0 +1,14 @@
+<configuration>
+ <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />
+ <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>${catalina.base}/logs/access.log</file>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${catalina.base}/logs/access-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
+ </rollingPolicy>
+ <encoder>
+ <pattern>combined</pattern>
+ </encoder>
+ </appender>
+
+ <appender-ref ref="FILE" />
+</configuration>
diff --git a/src/main/resources/tomcat-base/conf/server.xml b/src/main/resources/tomcat-base/conf/server.xml
index 28c7801..e99f693 100644
--- a/src/main/resources/tomcat-base/conf/server.xml
+++ b/src/main/resources/tomcat-base/conf/server.xml
@@ -111,6 +111,8 @@
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
+ <Valve className="ch.qos.logback.access.tomcat.LogbackValve"/>
+
</Host>
</Engine>
</Service>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list