[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-dev
Subject:    RE: EnhancedHTMLAppender
From:       Ceki =?iso-8859-1?Q?G=FClc=FC?= <ceki () qos ! ch>
Date:       2004-05-29 16:41:15
Message-ID: 6.0.3.0.0.20040529181820.034d09c8 () mail ! qos ! ch
[Download RAW message or body]

At 04:48 AM 5/29/2004, you wrote:
>Ceki,
>
> >
> > Is the diff file against CVS head or was  it against log4j 1.2.8?
>
>It should be against the CVS head.

Indeed, the patch worked without a hitch.

> >
> > I think instead of manually setting colors, font and what
> > have you, we
> > could use a CSS file. A default version could be placed on
> > the Logging
> > Services project's web-site. The user should be able to
> > specify a CSS file
> > of her own as an option. What do you think?
>
>I like the idea, but how would the generated html page find the css to use
>it?  I use this layout in conjunction with the SMTPAppender, and so I'm not
>sure how u could send it along?

You probably know it already but it may be useful to mention it here.
An external style sheet can be specified using the <link> tag.

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>

http://www.w3schools.com/css/css_howto.asp
The user can specify the location of the external CSS file as an
argument to EnhancedHTMLLayout. The output of EnhancedHTMLLayout would
contain a link to this location. We could also place a default CSS
file on our Apache server. So if no style sheet were specified, the
default one would be used. Note that the link can point to a local CSS
file allowing the user to have complete control over the output style.


>I also want to do things like highlighting rows based on basic filters too,
>not sure how much overkill that is, but a basic way to show DEBUG, INFO,
>WARN, ERROR lines in different colors would be nice.

That could be easily achieved by marking DEBUG event in a special
"debug" class. Similarly, event of level INFO would be making as
belonging to the "info" class and so forth.


-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic