logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Deboy" <sde...@comotivsystems.com>
Subject RE: log4j for python and chainsaw possible?
Date Thu, 30 Nov 2006 17:36:14 GMT
You can have Chainsaw process events generated in Python...there are two
commonly-used mechanisms:
 - Write an XMLSocketAppender that sends logging events to a socket,
conforming to logging events in log4j's dtd and configure Chainsaw to
use an XMLSocketReceiver

 - Write events to a log file and configure Chainsaw to use a
LogFilePatternReceiver (or VFSLogFilePatternReceiver if accessing log
files available over ssh)

There are other network-based options as well (UDP, multicast), but they
can lose events and require UDP/multicast in your network between the
Chainsaw and appender.

 
Scott Deboy
Principal Engineer
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR  97201
Telephone: 503.224.7496
Cell: 503.997.1367
Fax: 503.222.0185
sdeboy@comotivsystems.com
www.comotivsystems.com


-----Original Message-----
From: Lucie Chan [mailto:lcchan.temp@gmail.com] 
Sent: Wednesday, November 29, 2006 11:29 PM
To: log4j-user@logging.apache.org
Subject: log4j for python and chainsaw possible?

Hi,

I have a library that allows various components written in different
programming languages (perl, python, java) to talk to each other, and
I'd
like to capture the different log messages from each component and
display
them in a centralized GUI application.  I wonder if the following is
possible:

Each component logs its event messages using log4j and directs the
messages
to a socket using the SocketAppender.  The idea is the I can then use
chainsaw to read the messages from the socket and display them in the
GUI.
So far, I have no problem in getting Java to work with log4j and
chainsaw,
and it seems to work for Perl as well (according its FAQ), but the
questions
I have is Python.  I've founded very little information on this.

Does anyone have an suggestion?  Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message