On Sun, 2 Oct 2005, Donszelmann, Mark wrote:

> Hi
>
> I would like to run our tool in verbose mode from m2 when m2
> has the -X (debug) option switched on.
>
> How do I see if that is switched on (from java).

Get a logger (from a plugin: getLog()) and check if debug is enabled

  getLog().isDebugEnabled()

The -X is only used to set the LoggerManager's threshold to Logger.DEBUG,
otherwise it's discarded.

-- Kenney

>
> Regards
> Mark Donszelmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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

  • Debug -X mode Donszelmann, Mark
    • Re: Debug -X mode Kenney Westerhof

Reply via email to