Skip to content

Commit

Permalink
Issue #6008 - fix RequestLog usage with filePath.
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed Mar 4, 2021
1 parent 1cb0a49 commit 08c4ce1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jetty-server/src/main/config/etc/jetty-requestlog.xml
Expand Up @@ -18,7 +18,11 @@
<Arg>
<Call name="resolvePath" class="org.eclipse.jetty.xml.XmlConfiguration">
<Arg><Property name="jetty.base"/></Arg>
<Arg><Property name="jetty.requestlog.dir" default="logs" />/yyyy_mm_dd.request.log</Arg>
<Arg>
<Property name="jetty.requestlog.filePath">
<Default><Property name="jetty.requestlog.dir" default="logs"/>/yyyy_mm_dd.request.log</Default>
</Property>
</Arg>
</Call>
</Arg>

Expand Down
3 changes: 3 additions & 0 deletions jetty-server/src/main/config/modules/requestlog.mod
Expand Up @@ -16,6 +16,9 @@ etc/jetty-requestlog.xml
[files]
logs/

[ini]
jetty.requestlog.dir?=logs

[ini-template]
## 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"
Expand Down

0 comments on commit 08c4ce1

Please sign in to comment.