On Jun 13, 2006, at 2:49 PM, jack wu wrote:
i can't seem to make millisecond to work with the following pattern
string:
%d{%H:%M:%S:%Q}
the rest shows up fine but %Q part shows as "%Q". is it not supported?
i am using the latest code from cvs.
jack.
You should use the java.text.SimpleDateFormat syntax (http://
java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
which does support fractional seconds. For backward compatibility
with log4cxx 0.9.7 if a strftime-type format (that is with %'s) is
detected, then apr_strftime used to format the time. %Q is not
implemented in APR's apr_strftime (and is not documented typically in
systems that do implement it).