users@glassfish.java.net

Re: Management Rule - Log event : how to get triggered by ALL loggers (v2)

From: sankara rao bhogi <Sankara.Rao_at_Sun.COM>
Date: Wed, 28 Jan 2009 21:41:02 +0530

glassfish_at_javadesktop.org wrote:
> We are migrating from Glassfish v1 to Glassfish v2.1.
> While the migration of the application was no problem, we can't use our custom MBean/Management Rule combination any more.
>
> The requirement: We want to receive emails from the glassfish on any log event with a log level higher than a given threshold.
>
> We have an MBean that sends mails, which is invoced by a Management Rule.
> The Management Rule uses the event type "log" and is triggered by any log message with level WARNING or higher.
> The Glassfish v1 admin console allowed to select multiple logger names or even all loggers ("*") to watch. That's what we need.
> Unfortunately Glassfish v2 allows to select only one single logger name (from a select box filled with a LOT of loggers).
> We tried the logger name "global", but that did not seem to work.
>
> Does anybody know how to get the needed behaviour from Glassfish v.2.1 ?
>

As a work around, once the management rule is created, you could set the
loggerNames property to "*". Please file an issue for the same.

regards
sankar

> [Message sent by forum member 'steynbergh' (steynbergh)]
>
> http://forums.java.net/jive/thread.jspa?messageID=328662
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>