[logback-dev] [JIRA] Commented: (LBCLASSIC-22) feature request: XMLLayout (cfr. log4j)

Thorbjoern Ravn Andersen (JIRA) noreply-jira at qos.ch
Mon Feb 16 14:46:48 CET 2009


    [ http://jira.qos.ch/browse/LBCLASSIC-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11045#action_11045 ] 

Thorbjoern Ravn Andersen commented on LBCLASSIC-22:
---------------------------------------------------

I am neither "pissed" nor "peeved", but I was quite astonished.  I have found it to be due to the difference in our coding cultures and my subconcious expectations.

So be it.  

There are two key functionalities:

1) "generates humanly readable output" - the output is in a form that is readable to the human eye when browsing the text file containing the output from the XMLLayout.  This _INCLUDES_ the time attribute which contains a humanly readable version of the timestamp, put in a location where it is useful in the situation where the human needs to read the logfile.  I took great care in putting the linefeeds in the right places while maintaining DTD conformancy.

2) Uses numeric XML entities instead of CDATA.  In my experience this is more robust to data transports where the encoding is broken - which we have more often than I like to think about here - as it keeps to 7-bit ascii, AND it is better to the human reader as "<", ">" and "&" are only found in their proper form in tagnames and entities and not as a CDATA stream.   Also linefeeds etc are encoded as their numeric XML entity, resultning in each log event generating exactly two lines of output (but can be very wide).

The goal I am pursuing is to move from processed logs in flat text files (oh the joy of multi line log messages) into easily reprocessable log files in our production scenario.  Hence a XMLLayout class which generates humanly readable output while being log4j DTD conformant so it can be processed with e.g. Chainsaw and hopefully soon Lilith.

I understand your desire to be 100% compatible with log4j.  I hope you understand my need for a different version which is compatible with the log4j DTD but does not generates 100% identical output.  In XML there are many ways to say the same thing.


> feature request: XMLLayout (cfr. log4j)
> ---------------------------------------
>
>                 Key: LBCLASSIC-22
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-22
>             Project: logback-classic
>          Issue Type: Improvement
>          Components: Other
>    Affects Versions: unspecified
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: dirk
>            Assignee: Ceki Gulcu
>            Priority: Minor
>             Fix For: 0.9.15
>
>         Attachments: XMLLayout.jar, XMLLayout.java
>
>
> see Summary

-- 
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