Curt Arnold wrote:
> You do not have a % (percent) character before the d to introduce the
> date format. I assume that log4cxx is treating the whole pattern as a
> literal and the message is an indication that it did not locate a date
> pattern in the FileNamePattern value. There is an example in
> src/test/resources/input/rolling/time.xml.
Yes that fixed it.
The docs need to be updated accordingly. In the detailed description of:
http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1rolling_1_1RollingFileAppender.html
the XML example has the bug you noticed and a spurious " in the <root>
tag (rollingfileappender.h).
Anm
|