Bug 54660

Summary: AccessLogValve fileDateFormat can not be changed through JMX
Product: Tomcat 7 Reporter: Arnaud Kleinveld <arnaud.kleinveld>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: normal CC: arnaud.kleinveld
Priority: P2    
Version: 7.0.22   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

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.