Scott, Thanks for the hint. I tried it, but couldn't load your chainsaw-jboss.xml, which I put in Y:/chainsaw/chainsaw.xml. No receivers were loaded and I got several warning messages shown below. Are there any jars that I need to put on my classpath so that chainsaw can load org.apache.log4j.joran.JoranConfigurator?
What I am trying to do is to chainsaw working from a network drive. I need multiple users to be able to start chainsaw from the network drive and have chainsaw load its configuration from an xml file. Y:\chainsaw>java -jar log4j-chainsaw-1.3alpha0.jar log4j:INFO SecurityManager is now: null Using font=Arial log4j:ERROR pluginDirectory cannot be null, and it must exist and must be readab le, using the normal Classloader log4j:INFO Using 'file:///Y:/chainsaw/chainsaw.xml' for auto-configuration log4j:INFO Using 'file:/Y:/chainsaw/chainsaw.xml' for auto-configuration log4j:INFO in JP startDocument log4j:WARN No appenders could be found for logger (org.apache.log4j.joran.JoranC onfigurator). log4j:WARN Please initialize the log4j system properly. log4j:WARN Could not find any local JavaDocs, you might want to consider running 'ant javadoc'. The release version will be able to access Javadocs from the Apa che website. log4j:WARN Failed to locate Receiver class:org.apache.log4j.net.JMSReceiver log4j:INFO ORO classes not found - Like rule not supported Thanks. Oleg -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 7:42 PM To: Log4J Users List Subject: RE: Save Chainsaw State Here are instructions and a sample xml config file for use with chainsaw. Change the xml file to define a 'plugin' for each event source you would like to view in Chainsaw - socket, file, etc. You can define as many receiver plugins as you'd like (this example will load a jboss log file). Let us know if you have further questions... Directions Inside Chainsaw, select: view-show application wide preferences - enter the URL of this chainsaw.xml in the 'automatic configuration URL' field (for example: file:///c:/downloads/chainsaw-jboss.xml) - restart chainsaw chainsaw-jboss.xml.xml: ------------------------------ <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true"> <plugin name="logFileReceiver" class="org.apache.log4j.varia.LogFilePatternReceiver"> <param name="fileURL" value="file:///c:/downloads/jboss/server/default/log/server.log" /> <param name="timestampFormat" value="HH:mm:ss,SSS"/> <param name="logFormat" value="TIMESTAMP LEVEL [LOGGER] MESSAGE"/> <param name="name" value="jboss-log-file" /> <param name="tailing" value="true" /> </plugin> <root> <level value="debug"/> </root> </log4j:configuration> ------------------------------ -----Original Message----- From: Oleg Lebedev [mailto:[EMAIL PROTECTED] Sent: Fri 11/5/2004 3:50 PM To: [EMAIL PROTECTED] Cc: Subject: Save Chainsaw State Greetings. I've been using Chainsaw for a couple of weeks and it works great for me. One thing I cannot figure out is how to save Chainsaw receiver information and have it loaded the next time Chainsaw is started. I found a couple of log4j.xml files, which contain plugin definitions for the receiver, but I don't know where I should put this file so that Chainsaw can read it when restarted. Any hints would be appreciated. Thanks. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
