logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yair Ogen <yairo...@gmail.com>
Subject Re: how to use EnhancedPatternLayout
Date Mon, 16 Nov 2009 15:16:59 GMT
do you have log4j extras jar in your classpath?

On Mon, Nov 16, 2009 at 3:42 PM, Pat Farrell <pfarrell@pfarrell.com> wrote:

> In another thread, it was suggested that I convert from using
>
> PatternLayout to EnhancedPatternLayout
>
> so I changed all occurances of PatternLayout to EnhancedPatternLayout in
> my log4j.properties file. A typical line now looks like:
>
> log4j.appender.fnfbookfile.layout=org.apache.log4j.EnhancedPatternLayout
>
>
> When I run the program, I get errors from log4j:
> log4j:ERROR No layout set for the appender named [daemon].
> log4j:ERROR No layout set for the appender named [pat].
>
> Did I guess the wrong format? Do I need to use a different
> layout.ConversionPattern?
>
> Do I need an additional jar file of libraries that contain the
> backported enhancements?
>
> Thanks
> Pat
>
> --
> Pat Farrell
> http://www.pfarrell.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message