Adding one would be trivial (in fact, it's as easy as adding a single string
to the log4j properties)
The problem, is the log would never be a valid XML doc untill the app server
is shut down.
ie:
Using: "<%d{dd-MMM-yyyy}><%p><%c{1}>%m</%c{1}></%p></%d{dd-MMM-yyyy}>\n"
As the pattern string produces:
<28-Oct-2001><INFO><cat1>This is a cat1</cat1></INFO></28-Oct-2001>
<28-Oct-2001><INFO><cat2>This is a cat2</cat2></INFO></28-Oct-2001>
<28-Oct-2001><INFO><cat3>This is a cat3</cat3></INFO></28-Oct-2001>
<28-Oct-2001><INFO><cat1>This is a cat1</cat1></INFO></28-Oct-2001>
<28-Oct-2001><INFO><cat2>This is a cat2</cat2></INFO></28-Oct-2001>
<28-Oct-2001><INFO><cat3>This is a cat3</cat3></INFO></28-Oct-2001>
There would be no document tag for the xml. But I guess you wouldn't want
one anyway, since you couldn't have it at the end.
Meaning, if the log started with <log>, you couldn't write the "</log>"
until JBoss shut down.
If you want REAL xml (as in with the doc tags), I would suggest a mbean that
will read the logfile in and dump XML.
If you like, I can add that (now that I have my shiny new RW access). It'd
be a 10 minute job (plus 5 hours to figure out where it should be put).
But I'd suggest against that, since composing the string in ram (MBeans
can't return streams can they?) would be hella expensive (a 1GB log file
xmlized would suck)
-David Budworth
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of marc
fleury
Sent: Sunday, October 28, 2001 9:47 PM
To: Jboss-Development@Lists. Sourceforge. Net
Subject: [JBoss-dev] is there (911)
an xml generator to log4j? instead of the flat readable file I mean? this
way you can almost navigate with the data XML. The dates should almost be
at the top of the tree so that you can read by date. In fact reading by
date is one and then you can ask for a tree on "topic" and see like that.
Creating trees dynamically is a powerful feature.
We would prove how quickly in administration, on the fire, on the job!
With sets instead of trees.
marcf
xxxxxxxxxxxxxxxx
Marc Fleury
President
JBoss Group, LLC
xxxxxxxxxxxxxxxx
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development