On Mon, 11 Aug 2003 [EMAIL PROTECTED] wrote:

> Date: Mon, 11 Aug 2003 11:12:10 +1000
> From: [EMAIL PROTECTED]
> Reply-To: Jakarta Commons Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [logging] How do I change logging levels at run time?
>
> I've got a application (maven) that uses commons logging.
>
> We have a command line switch (-debug) that I'd like to set the logging
> level for everything to 'debug'.
>
> Is this possible with commons-logging, or must we use log4j to do this?

You'll need to use your underlying logging system's configuration
mechanism for stuff like this.

If you're using the simple logger that is built in to commons-logging, you
can probably accomplish this by calling System.setProperty() on the
appropriate property names.

> --
> dIon Gillard, Multitask Consulting
> Blog:      http://blogs.codehaus.org/people/dion/
>

Craig


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to