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");
david jencks
On 2001.09.22 13:52:13 -0400 "Ferguson, Doug" wrote:
> Some are in my servlet and some are in beans..
>
> How do I convert them to log4j.
> I don't know much about log4j.
> I have done a little reading but I wouldn't know how to
> tie into the jBoss logging.
>
> d.
>
> -----Original Message-----
> From: Guy Rouillier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 21, 2001 11:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] log4j system.out category
>
>
> Are these your beans? If so, why not convert everything to log4j calls?
>
> ----- Original Message -----
> From: "Ferguson, Doug" <[EMAIL PROTECTED]>
> To: "JBoss User (E-mail)" <[EMAIL PROTECTED]>
> Sent: Friday, September 21, 2001 7:52 PM
> Subject: [JBoss-user] log4j system.out category
>
>
> > Is there a category specificly for stuff written to system.out from
> beans?
> >
> > I want to sent this to INFO so I get my messages.
> > But I want to set JBOSS to ERROR so that JBOSS doesn't print as many
> > messages..
> >
> > Thanks,
> > d.
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user