Bug 54660 - AccessLogValve fileDateFormat can not be changed through JMX
Summary: AccessLogValve fileDateFormat can not be changed through JMX
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 7.0.22
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-10 07:09 UTC by Arnaud Kleinveld
Modified: 2013-03-14 15:57 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Kleinveld 2013-03-10 07:09:11 UTC
When an AccessLogValve is added to a catalina host with the JMX addVale() operation on the Host object name, the valve will start with the default fileDateFormat.

Changing the attribute on the valve through it's JMX object name has no effect because the valve is already started.

Executing a rotate() operation on the valve does also have no effect.

Steps to Reproduce:
- Start tomcat server
- Add Host using JMX
- Add valve to Host using JMX
- Set valve attribute fileDateFormat to something else than yyyy-MM-dd, for example yy-MM

Actual Results:
The access log file format will include the default fileDateFormat of yyyy-MM-dd

Expected Results:
The access log file format with yy-MM, as from the example.
Comment 1 Mark Thomas 2013-03-14 15:57:41 UTC
This has been implemented in trunk and 7.0.x and will be included in 7.0.39 onwards.