[java-idp-jetty-base] branch 10 updated: Route access log through SLF4J.
Scott Cantor
cantor.2 at osu.edu
Mon Jan 31 18:00:38 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch 10
in repository java-idp-jetty-base.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-jetty-base.git;a=commit;h=a2eb8c984c749fbcc28cc05e28209655c620b1a5
The following commit(s) were added to refs/heads/10 by this push:
new a2eb8c9 Route access log through SLF4J.
a2eb8c9 is described below
commit a2eb8c984c749fbcc28cc05e28209655c620b1a5
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Jan 31 13:00:34 2022 -0500
Route access log through SLF4J.
---
.../resources/jetty-base/etc/jetty-requestlog.xml | 30 ++++++++++++++++++++++
src/main/resources/jetty-base/start.d/idp.ini | 3 +++
.../resources/jetty-base/start.d/requestlog.ini | 27 -------------------
3 files changed, 33 insertions(+), 27 deletions(-)
diff --git a/src/main/resources/jetty-base/etc/jetty-requestlog.xml b/src/main/resources/jetty-base/etc/jetty-requestlog.xml
new file mode 100644
index 0000000..ebafc21
--- /dev/null
+++ b/src/main/resources/jetty-base/etc/jetty-requestlog.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
+
+<!-- =============================================================== -->
+<!-- Configure the Jetty Request Log -->
+<!-- =============================================================== -->
+<Configure id="Server" class="org.eclipse.jetty.server.Server">
+
+ <!-- =========================================================== -->
+ <!-- Configure Request Log for Server -->
+ <!-- (Use RequestLogHandler for a context specific RequestLog -->
+ <!-- =========================================================== -->
+ <Set name="RequestLog">
+ <New id="RequestLog" class="org.eclipse.jetty.server.CustomRequestLog">
+ <!-- Writer -->
+ <Arg>
+ <New class="org.eclipse.jetty.server.Slf4jRequestLogWriter" />
+ </Arg>
+
+ <!-- Format String -->
+ <Arg>
+ <Property name="jetty.requestlog.formatString" deprecated="jetty.customrequestlog.formatString">
+ <Default>
+ <Get class="org.eclipse.jetty.server.CustomRequestLog" name="EXTENDED_NCSA_FORMAT"/>
+ </Default>
+ </Property>
+ </Arg>
+ </New>
+ </Set>
+</Configure>
diff --git a/src/main/resources/jetty-base/start.d/idp.ini b/src/main/resources/jetty-base/start.d/idp.ini
index 40cd226..babd6c1 100644
--- a/src/main/resources/jetty-base/start.d/idp.ini
+++ b/src/main/resources/jetty-base/start.d/idp.ini
@@ -29,3 +29,6 @@ jetty.sslContext.renegotiationAllowed=false
## Connector port to listen on
jetty.ssl.port=443
+
+# Route request logging through standard logging API
+etc/jetty-requestlog.xml
diff --git a/src/main/resources/jetty-base/start.d/requestlog.ini b/src/main/resources/jetty-base/start.d/requestlog.ini
deleted file mode 100644
index 08fbea6..0000000
--- a/src/main/resources/jetty-base/start.d/requestlog.ini
+++ /dev/null
@@ -1,27 +0,0 @@
-# ---------------------------------------
-# Module: requestlog
-# Logs requests using CustomRequestLog and AsyncRequestLogWriter.
-# ---------------------------------------
---module=requestlog
-
-## Format string
-# jetty.requestlog.formatString=%a - %u %{dd/MMM/yyyy:HH:mm:ss ZZZ|GMT}t "%r" %s %B "%{Referer}i" "%{User-Agent}i" "%C"
-
-## Logging directory (relative to $jetty.base)
-# jetty.requestlog.dir=logs
-
-## File path
-# jetty.requestlog.filePath=${jetty.requestlog.dir}/yyyy_mm_dd.request.log
-
-## Date format for rollovered files (uses SimpleDateFormat syntax)
-# jetty.requestlog.filenameDateFormat=yyyy_MM_dd
-
-## How many days to retain old log files
-# jetty.requestlog.retainDays=90
-
-## Whether to append to existing file
-# jetty.requestlog.append=false
-
-## Timezone of the log file rollover
-# jetty.requestlog.timezone=GMT
-
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list