[jboss-as7-dev] Listen to all JBoss logging messages
James Perkins
jperkins at redhat.com
Tue Aug 30 14:08:42 EDT 2011
Correct Jaikiran. If you need/want to programatically add a
java.util.logging.Handler you need to use the org.jboss.logmanager.Logger.
Note though there is a bug in jboss-stdio which the logmanager uses that
will give you an infinite loop if you use System.out or System.in. This
is fixed in the SNAPSHOT source, but not in the release yet.
On 08/30/2011 01:15 AM, Jaikiran Pai wrote:
> James and/or David Lloyd would be able to confirm, but from what I know
> of the JBoss Logging APIs, you should be using the
> org.jboss.logmanager.Logger which has methods like addHandler available
> on it. Notice that it's org.jboss.logmanager.Logger and not the usual
> org.jboss.logging.Logger
>
> P.S: Make sure you add a module dependency on org.jboss.logmanager module.
>
> -Jaikiran
> On Tuesday 30 August 2011 01:36 PM, David Bosschaert wrote:
>> James, Jaikiran, thanks for the replies.
>> Is there a way to add a custom handler programatically? I'm in a JUnit
>> test (Arquillian) so I'd just like to just add it for the duration of my
>> test.
>>
>> Thanks,
>>
>> David
>
--
James R. Perkins
JBoss by Red Hat
More information about the jboss-as7-dev
mailing list