You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by ratnesh gupta <ra...@yahoo.co.in> on 2007/10/31 11:35:11 UTC
Re: Doubt
Hi *.*,
Is there a way to specify in the configuration file a
"ConversionPattern" for "HTMLLayout"?
If I use this,
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=log4j.html
log4j.priority.file=DEBUG
log4j.appender.file.layout=org.apache.log4j.HTMLLayout
log4j.appender.file.layout.ConversionPattern=%-5p %c - %m%n
It throws,
log4j:WARN No such property [conversionPattern] in
org.apache.log4j.HTMLLayout.
Is there any work around to this?
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Doubt
Posted by "James A. N. Stauffer" <st...@gmail.com>.
Per the javadocs there is not a conversion pattern for HTML layout.
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/HTMLLayout.html
On 10/31/07, ratnesh gupta <ra...@yahoo.co.in> wrote:
>
> Hi *.*,
>
> Is there a way to specify in the configuration file a
> "ConversionPattern" for "HTMLLayout"?
>
> If I use this,
> log4j.appender.file=org.apache.log4j.FileAppender
> log4j.appender.file.File=log4j.html
> log4j.priority.file=DEBUG
> log4j.appender.file.layout=org.apache.log4j.HTMLLayout
> log4j.appender.file.layout.ConversionPattern=%-5p %c - %m%n
>
> It throws,
> log4j:WARN No such property [conversionPattern] in
> org.apache.log4j.HTMLLayout.
> Is there any work around to this?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/