I am setting the date format to use by:

log4j.appender.TRACKING_DEST2.layout=org.apache.log4j.PatternLayout
log4j.appender.DEST.layout.ConversionPattern=%d{dd MMM YYYY HH:mm:ss,SSS}
[%m %n

However I get exceptions.   What am I doing wrong??????

.log4j:ERROR Error occured while converting date.
java.lang.IllegalArgumentException: Illegal pattern character 'Y'
        at java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:477)
        at java.text.SimpleDateFormat.format(SimpleDateFormat.java:410)
        at java.text.DateFormat.format(DateFormat.java:305)
        at
org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternP
arser.java:434)
        at
org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:56)
        at org.apache.log4j.PatternLayout.format(PatternLayout.java:547)
        at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:295)
        at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:294)
        at org.apache.log4j.WriterAppender.append(WriterAppender.java:157)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
erAttachableImpl.java:57)
        at org.apache.log4j.Category.callAppenders(Category.java:255)
        at org.apache.log4j.Category.forcedLog(Category.java:445)
        at org.apache.log4j.Category.info(Category.java:704)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to