David Jencks <[EMAIL PROTECTED]> writes:
> include
>
> import org.apache.log4j.Category;
>
>
> private Category log = Category.getInstance(MyClass.class);
> //Or use a string, maybe for jsps, haven't tried
>
>
> to log...
>
> log.info("my message");
>
> log.warn("HI");
> catch (Exception e)
> {
> log.error("now you've really done it! You broke it with exception", e);
> }
> log.debug("be sure to ignore this");
If you are try to log from within any of your Beans you can do the
following:
==
import org.jboss.logging.Logger;
.
.
.
.
.
Logger.warning ("Problem locating UDFs for removal:" + e);
==
I think you need to add jboss.jar to your classpath.
--
Nicolai P Guba http://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user