Hi,

I've tried to get the TimeBasedRollingPolicy running. So I was wondering why the DOMConfigurator couldn't create an Instance for the TimeBasedRollingPolicy.

I've debugged my App step by step and figured out, that the TimeBasedRollingPolicy was declared as an Abstract class. What is the reason for this?
However, I changed the the declaration:
          //DECLARE_ABSTRACT_LOG4CXX_OBJECT(TimeBasedRollingPolicy)
          DECLARE_LOG4CXX_OBJECT(TimeBasedRollingPolicy)
and failed at the Date pattern. In the jDOC, the example is documented as:
<param name="fileNamePattern" value="./log/test1-{yyyy-MM}"/>
but I needed to mark the pattern as a date with [%d]:
<param name="fileNamePattern" value="./log/test1-%d{yyyy-MM}"/>
At the current state of Log4CXX, the Date format pattern is required.

Regards

Rainer

--
Rainer Schuetze

i3mainz - Fachhochschule Mainz
Holzstrasse 36
55116 Mainz
Germany

Tel: +49 (0)6131 2859 682
Fax: +49 (0)6131 2859 699
[EMAIL PROTECTED]
http://www.i3mainz.fh-mainz.de

Reply via email to