[logback-dev] [JIRA] Updated: (LBCORE-197) CSS Builder that can accept the css text directly

Benoit Xhenseval (JIRA) noreply-jira at qos.ch
Sat Feb 19 14:47:52 CET 2011

     [ http://jira.qos.ch/browse/LBCORE-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Xhenseval updated LBCORE-197:

    Attachment: CssTextBuilder.java


Thanks for the hint. It is working essentially how you suggested BUT it is best to declare the <style... inside the class otherwise the parsing of the logback.xml will consider the <style as XML (and most people would not use [[CDATA[..

I think it would be a nice addition to LogBack:

Simple to us:

     <appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
          <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
            <Subject>Error: %m</Subject>
              <layout class="ch.qos.logback.classic.html.HTMLLayout">
                  <pattern>%d{MMM-dd HH:mm:ss.SSS}%thread%level%logger{0}%msg</pattern>
                  <cssBuilder class="som.pckg.CssTextBuilder">
table { margin-left: 0em; margin-right: 0em; border-left: 1px solid #AAA; }
TR.even { background: #FFFFFF; }
TR.odd { background: #AAEAEA; }
...                 </cssText>
            <CyclicBufferTracker class="ch.qos.logback.core.spi.CyclicBufferTrackerImpl">

> CSS Builder that can accept the css text directly
> -------------------------------------------------
>                 Key: LBCORE-197
>                 URL: http://jira.qos.ch/browse/LBCORE-197
>             Project: logback-core
>          Issue Type: New Feature
>            Reporter: Benoit Xhenseval
>            Assignee: Logback dev list
>         Attachments: CssTextBuilder.java
> I suggest creating a CSSBuilder class that can accept the CSS text directly in the XML configuration file.
> We will submit a simple implementation.
> Thanks for LogBack!

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list