How to configure log4j to generate XMLLayout compatible output.

2003-11-27 Thread Robert Augustyn
Hi, I am playing around with chainsaw and it does not look like it recognizes my log file. I understand that chainsaw expects XMLLayout compatible output file for it to be able to parse it. How do you do that? Thanks a lot. Robert Btw: I am using version which comes with ver 1.2.8 of log4j

Re: How to configure log4j to generate XMLLayout compatible output.

2003-11-27 Thread Paul Smith
On Fri, 2003-11-28 at 11:42, Robert Augustyn wrote: Hi, I am playing around with chainsaw and it does not look like it recognizes my log file. I understand that chainsaw expects XMLLayout compatible output file for it to be able to parse it. How do you do that? Thanks a lot. Robert Btw

RE: How to configure log4j to generate XMLLayout compatible output.

2003-11-27 Thread Robert Augustyn
Paul, Thanks for quick response. No I have no appender configured using XMLLayout. Where can I find an example? I have looked through the distribution and could find nothing. Chainsaw does not throw an error it says 0 loaded events when opening the file. Thanks a lot. robert -Original Message

RE: How to configure log4j to generate XMLLayout compatible output.

2003-11-27 Thread Paul Smith
No I have no appender configured using XMLLayout. Where can I find an example? I have looked through the distribution and could find nothing. Chainsaw does not throw an error it says 0 loaded events when opening the file. Thanks a lot. robert It's pretty easy, here's a snippet from

RE: How to configure log4j to generate XMLLayout compatible output.

2003-11-27 Thread Robert Augustyn
Paul, Thanks this worked great. Robert -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2003 8:41 PM To: Log4J Users List Subject: RE: How to configure log4j to generate XMLLayout compatible output. No I have no appender configured using

Newbie/Dummy Question on XMLLayout and log4j

2003-11-19 Thread Caitriona Doris (AT/EEI)
Hi, I am trying to use XMLLayout class to format my logs from log4j and my question is in the complete manual it states that ... if abc.log is the name of the file where the XMLLayout results go, then the following file includes it as an external entity: Is this a dtd that should be used

XMLLayout and styleheet

2003-08-18 Thread Morten Haavaldsen
Hi, has anyone tested the XMLLayout and have some stylesheets. /Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

XMLLayout and HTMLLayout !!!

2003-06-05 Thread Padmaja Manike
Hi Can anyone tell me which appender is best suited for HTMLLayout and XMLLayout. Can we have a HTML or XMLLayout for a RollingFileAppender? If yes then how should the xml configuration file look like? Thanks in advance. Padmaja Manike Programmer Analyst Intelligroup Asia Pvt. Ltd. 3- 9- 22

RE: chainsaw not reading XMLLayout log file

2003-02-06 Thread Beleznay, Dave
I solved this problem. It appears that chainsaw is expecting logger in place of category in the XMLLayout output file. By modifying XMLFileHandler like so, I was able to get it to work correctly. @@ -115,6 +115,9 @@ mThreadName = aAtts.getValue(thread

chainsaw not reading XMLLayout log file

2003-02-03 Thread Beleznay, Dave
When I try to load up the following logfile with chainsaw I keep getting null pointer exceptions.. log4j:event category=com.webct.platform.framework.ejb.JMSBase timestamp=1044335246660 level=ERROR thread=Thread-7 log4j:message![CDATA[CLASS: com.webct.platform.framework.ejb.JMSBase METHOD:

XMLLayout/Chainsaw

2002-11-11 Thread Graham Mead
Hi, I'm trying to open a log file via Chainsaw which has been written to via the XMLLayout Appender As per the Javadoc, I have created an xml file with the following entries ?xml version=1.0 ? !DOCTYPE log4j:eventSet SYSTEM log4j.dtd [!ENTITY data SYSTEM server.log] log4j:eventSet version=1.2

XMLLayout

2002-10-01 Thread Sundararaman, Anand
Hi, I have a problem in my XMLayout. The log file which is formed does not have a main tag. So it does not open in the internet explorer. Can anyone help me out on how to include the main tag? I am attaching the relevant files I am using. Thanks in advance Anand

AW: Bug in XMLLayout

2002-08-20 Thread Holger Brands
Hi, The issue i am facing is that the log4j.dtd defines the event as follows: !ATTLIST log4j:event category CDATA #REQUIRED priority CDATA #REQUIRED thread CDATA #REQUIRED timestamp CDATA #REQUIRED Note that the dtd uses priority while the XMLLayout uses level(for severity

Bug in XMLLayout

2002-08-19 Thread sanjayrajsoni
When i use the XMLLayout as shown below: log4j.appender.R.layout=org.apache.log4j.xml.XMLLayout It generates the following message: log4j:event category=plat.ivss.sloc timestamp=1029016634611 level=WARN thread=main log4j:message![CDATA[WARN]]/log4j:message /log4j:event The issue i am facing

Incompatibility between Log4j DTD and XMLLayout

2002-08-14 Thread sanjayrajsoni
I downloaded jakarta-log4j-1.2.1 sometime in May'02. When i use the XMLLayout as shown below: log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.file=MyApp.log log4j.appender.R.MaxFileSize=1 log4j.appender.R.layout=org.apache.log4j.xml.XMLLayout It generates

XMLLayout Chainsaw

2002-08-12 Thread Chris Hane
Hopefully this is a quick question. I'm trying to get Chainsaw to read a file created with XMLLayout. I've read the XMLLayout javadoc and have not been able to figure out exactly what I need to do to modify the output so that chainsaw will read the file in. I will admit that I am

Re: XMLLayout Chainsaw

2002-08-12 Thread Chris Hane
parser - at least the one bundled with tomcat 4.0 Question, should it work with Xerces 2.x? Thanks, Chris At 8/12/2002 02:55 AM, you wrote: Hopefully this is a quick question. I'm trying to get Chainsaw to read a file created with XMLLayout. I've read the XMLLayout javadoc and have

RE: XMLLayout Chainsaw

2002-08-12 Thread Christian, William
]] Sent: Monday, August 12, 2002 4:39 AM To: Log4J Users List Subject: Re: XMLLayout Chainsaw Figures that I would get it working after asking for help. Turns out it was the version of the xml parser. While chainsaw will startup with xerces-1.x it will not parse the file. I tried the XercesJ-2.x

RE: Correction!! (was: RE: XMLLayout conversion pattern)

2002-07-02 Thread Thomas Muller
Never used XMLLayout, but it can't be rocket science: appender name=FOO class=org.apache.log4j.FileAppender param name=file value=foo.log / layout class=org.apache.log4j.xml.XMLLayout param name=LocationInfo value=true / /layout /appender category name

XMLLayout conversion pattern

2002-07-01 Thread Christian, William
How do I customize the XML log event produced when using the XMLLayout appender? I would like to include additional data as is currently done with the ConversionPattern. However, the ConversionPattern is not supported by the XMLLayout appender. Specifically, I want to output the calling class (%C

RE: XMLLayout conversion pattern

2002-07-01 Thread Thomas Muller
Try to set param name=LocationInfo value=true / for the appender you're using. -- Thomas | -Original Message- | From: Christian, William [mailto:[EMAIL PROTECTED]] | Sent: 01 July 2002 18:26 | To: Log4J Users List | Subject: XMLLayout conversion pattern | | | How

Correction!! (was: RE: XMLLayout conversion pattern)

2002-07-01 Thread Thomas Muller
[mailto:[EMAIL PROTECTED]] | Sent: 01 July 2002 18:45 | To: Log4J Users List | Subject: RE: XMLLayout conversion pattern | | | Try to set | | param name=LocationInfo value=true / | | for the appender you're using. | | -- | | Thomas | | | | | | -Original Message

RE: Correction!! (was: RE: XMLLayout conversion pattern)

2002-07-01 Thread Christian, William
Do you have an example you can share? Thanks. -billc -Original Message- From: Thomas Muller [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 2:01 PM To: Log4J Users List Subject: Correction!! (was: RE: XMLLayout conversion pattern) Perusing the code you can see that you will have

Viewing XMLLayout log file?

2002-05-02 Thread Rob Mitchell
]]/log4j:message /log4j:event log4j:event category=testOne timestamp=1020341749312 priority=FATAL thread=main log4j:message![CDATA[3rd hello world: testOne]]/log4j:message /log4j:event so I copy/paste the example from XMLLayout javadocs into this file: ?xml version=1.0 ? !DOCTYPE log4j:eventSet SYSTEM

How to configure the Timestamp using the XMLLayout class ?

2001-11-14 Thread adi Ekstein
Hi, Im using the XMLLayout class - but the timestamp keep appearing in a Miliseconds foramt. How do I configure this to show the Date/time format ? Thanks DD -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Example for XMLLayout.

2001-08-13 Thread subhashini
Hi! I have recently started using Log4j. Could anyone of U, get me an example as to How I can use XMLLayout and RollingFileAppender to obtain a XML based log output format. Regards Subhashini - To unsubscribe, e

RE: Example for XMLLayout.

2001-08-13 Thread Krishnamurthy, Balaji (MED)
log4j.appender.FILEAPP.File=mylogfile.xml log4j.appender.FILEAPP.MaxFileSize=100KB log4j.appender.FILEAPP.MaxBackupIndex=10 # FILEAPP uses a XMLLayout log4j.appender.FILEAPP.layout=org.apache.log4j.xml.XMLLayout Hope this helps -Balaji -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

Re: XMLLayout and well formatted XML documents

2001-07-25 Thread Sam Newman
The source code for the XMLFileAppener is included with the distribution. You could edit it I guess this file and rename it or something (WellFormedXMLFileAppender?) - shouldn't be too hard. sam Krishnamurthy, Balaji (MED) Wrote: Hi folks, I started using log4j recently and have started

Re: XMLLayout and well formatted XML documents

2001-07-25 Thread Ceki Gülcü
This is what the javadoc says: The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file

RE: XMLLayout and well formatted XML documents

2001-07-25 Thread Krishnamurthy, Balaji (MED)
: XMLLayout and well formatted XML documents This is what the javadoc says: The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate