Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Gzip compression of request logs

Hello,

I have this log configuration in a stripped down version of jetty. The log rotation is done as expected. But how can I tell jetty to compress the rotated request logs? Using /request-yyyy_MM_dd.log.gz in filename does not do the trick.

<Ref refid="Handlers">
<Call name="addHandler">
<Arg>
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
<Set name="requestLog">
<New id="RequestLogImpl" class="org.eclipse.jetty.server.AsyncNCSARequestLog">
<Set name="filename"><Property name="jetty.logs" default="./logs"/>/request-yyyy_MM_dd.log</Set>
<Set name="filenameDateFormat">yyyy_MM_dd</Set>
<Set name="retainDays">90</Set>
<Set name="append">true</Set>
<Set name="extended">false</Set>
<Set name="logCookies">false</Set>
<Set name="LogTimeZone">GMT</Set>
</New>
</Set>
</New>
</Arg>
</Call>
</Ref>
I’m using jetty 9.3.6.v20151106 with maven.

Thank you,
Filipe Sousa

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Back to the top