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 "Collier, Mike" <Mi...@stercomm.com> on 2002/04/01 15:44:33 UTC

RE: Doubt

	I do not believe there is a way to specify a ConversionPattern for
HTMLLayout.  The only options available in HTMLLayout are "LocationInfo" and
"Title".  The layout of HTMLLayout is specified in the format(LoggingEvent)
method of HTMLLayout.


-----Original Message-----
From: Dharanendra S. Pandit [mailto:DharanendraP@netscape.net]
Sent: Saturday, March 30, 2002 7:17 AM
To: log4j-user@jakarta.apache.org
Subject: 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.


But, this entry [ ConversionPattern ], works well with "ConsoleAppender" 
and using "PatternLayout".  Why is it that it just doesn't works well 
with "HTMLLayout"?  I need to have my own pattern.


Is there any work around to this?


Pandit.





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.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/

Re: Doubt

Posted by ratnesh gupta <ra...@yahoo.co.in>.
 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