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
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
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
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
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
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
Hi,
has anyone tested the XMLLayout and have some stylesheets.
/Morten
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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:
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
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
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
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
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
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
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
]]
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
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
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
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
[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
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
]]/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
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]
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
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
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
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
: 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
30 matches
Mail list logo