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 [EMAIL PROTECTED] www.comotivsystems.com -----Original Message----- From: Lucie Chan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 11:29 PM To: [email protected] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
