This content has been marked as final.
Show 2 replies
-
1. Re: Get instance of logging service.
infectedrhythms Nov 16, 2004 1:35 PM (in response to infectedrhythms)Or more specifically how can I access a particualr service (Jboss MBeans) from my own services.
Thanks -
2. Re: Get instance of logging service.
starksm64 Nov 18, 2004 5:19 PM (in response to infectedrhythms)The logging service just configures the logging subsystem which is log4j by default so you would simply use whatever factory method the configured logging subsystem provides. The logging service itself has no logging facilities.
import org.apache.log4j.Logger; .... Logger log = Logger.getLogger("x.y.z.MyCategory");
or use the jboss logging wrapper which is independent of the logging subsystem:import org.jboss.logging.Logger; .... Logger log = Logger.getLogger("x.y.z.MyCategory");