I just committed a change to Chainsaw svn trunk (rev 946685) which provides support for using the log4j.configuration system property on the command line to configure Chainsaw if the application-wide preferences field is not set (or cleared out and Chainsaw is restarted).
The configuration.url must provide a URL java -classpath (classpath here) -Dlog4j.configuration=file:///c:/downloads/tools/log4j/config/log4j.xml org.apache.log4j.chainsaw.LogUI Scott On Thu, May 20, 2010 at 7:28 AM, mokader <[email protected]> wrote: > > Hi Scott, > > Thanks for your quick reply. > > My application is executable and will be distributed to users, my users > also > view logs. > for example, if a user press "view log" button, I need to open chainsaw. > > As you said, I can configure in application-wide preferences screen, only > after launching the chainsaw. > I want to launch it pre-configured, like using command-line parameters when > chainsaw main class is launched. > > Is there a way to send configuration file path as the command-line > arguments? > > Thanks, > Mohammed > > > Scott Deboy wrote: > > > > you can specify the URL to the configuration file in the application-wide > > preferences screen - specifying the URL to your configuration will cause > > the > > configuration to be used each time Chainsaw is started. > > > > -- > View this message in context: > http://old.nabble.com/I-am-trying-to-add-chainsaw-support-to-the-eXist-XML-Database-tp26548991p28622012.html > Sent from the Log4j - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
