> -----Original Message----- > From: David Leangen [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 25, 2004 15:56 > To: [EMAIL PROTECTED] > Subject: Logging configuration > Importance: High > > > I'd like to configure my components to log to a file. > > I read this page: > http://avalon.apache.org/products/runtime/system/logging/api/index.html > > > But it doesn't say WHERE or HOW to do this. Doesn't say either what the > attributes should be. > > I tried using this tag in a few places: > @avalon.logging.configuration name="someUrl" > > But that didn't do the trick. > > > Any suggestions?
Merlin looks for the property merlin.logging.config to determine the location of the logging configuration. If you use the -info flag when starting merlin you will see the following line: ${merlin.logging.config} == null You can change this value by adding the merlin.logging.config property in a property file named merlin.properties. E.g. in ${merlin.home}/merlin.properties. The value to assign should be a url pointing to a logging configuration. For example: merlin.logging.config = file:///${merlin.dir}/logging.xml The contents of the logging.xml file should be something along the lines of the configuration file show in this example: http://avalon.apache.org/products/runtime/system/logging/logkit/examples /logkit.html Hope that helps. Cheers, Steve. > > Thanks! > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]