FW: RE: Log4Net Viewer
"Scott Deboy" <[email protected]> Fri, 6 Feb 2004 08:33:51 -0800
| Newsgroups | gmane.comp.windows.dotnet.log4net.user |
|---|---|
| Message-ID | <[email protected]> |
I attached the wrong configuration info needed to have Chainsaw receive
events from Log4Net via UDP. =20
Here is the correct xml file to use:
<?xml version=3D"1.0" encoding=3D"UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration
xmlns:log4j=3D"http://jakarta.apache.org/log4j/" debug=3D"true">
<plugin name=3D"UDPReceiver" =
class=3D"org.apache.log4j.net.UDPReceiver">
<param name=3D"Port" value=3D"4446"/>
</plugin>
</log4j:configuration>
-----Original Message-----
From: Scott Deboy [mailto:[email protected]]=20
Sent: Wednesday, February 04, 2004 5:35 PM
To: jgeng
Subject: RE: [Log4net-users] RE: Log4Net Viewer
Chainsaw v2 can display UDP-transmitted events. See
http://logging.apache.org/log4j/docs/chainsaw.html - the easiest way to
try it is to install a java VM and ant (http://ant.apache.org), download
the xml file from the 'installation' page of the chainsaw link above,
and follow the instructions.
Here is a sample configuration you can use with chainsaw v2 for
receiving UDP-transmitted events: (save this to an .xml file and load
the file as chainsaw's configuration
- change appropriate parameters)
<?xml version=3D"1.0" encoding=3D"UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration
xmlns:log4j=3D"http://jakarta.apache.org/log4j/"
debug=3D"true">
<appender name=3D"UDP" class=3D"org.apache.log4j.net.UDPAppender">
<param name=3D"remoteHost" value=3D"127.0.0.1"/>
<param name=3D"port" value=3D"4446"/>
<layout class=3D"org.apache.log4j.xml.XMLLayout"/>
</appender>
<root>
<level value=3D"debug"/>
<appender-ref ref=3D"UDP"/>
</root>
</log4j:configuration>
Chainsaw v2 can also view log files saved in xml format (conforming to
log4j's dtd or jdk1.4's logging dtd).
-----Original Message-----
From: jgeng [mailto:[email protected]]=20
Sent: Wednesday, February 04, 2004 8:58 AM
To: Scott Deboy; [email protected]
Subject: RE: [Log4net-users] RE: Log4Net Viewer
If I use UdpAppender in Log4Net, I need to write a program to receive
Udp message, right?=20
I am currently using RollingFileAppender for my application, is there
any similar tools like Chainsaw that can be used to view logfile of
RollingFileAppender?
Thanks
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Scott
Deboy
Sent: Thursday, November 06, 2003 8:34 AM
To: [email protected]
Subject: [Log4net-users] RE: Log4Net Viewer
The new version of Log4J's Chainsaw (only available for now via CVS) can
receive Log4Net-generated events.
On the Chainsaw side, specify a UDPReceiver in the configuration.
On the Log4Net side, specify a UdpAppender configured to use an
XmlLayoutSchemaLog4j layout.
If you're interested in trying the new version of Chainsaw, go to
http://jakarta.apache.org/site/cvsindex.html and retrieve the
jakarta-log4j module and build it.
An alpha release binary should be available soon for download.
If you have further questions about Chainsaw, feel free to email me.
Scott
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does
SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Log4net-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4net-users
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn