RE: Logging configuration

"Stephen McConnell" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <000001c47251$ba72a710$1601a8c0@devbox>

> -----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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.