Try Super, it is a monitor and logging tool:
www.acelet.com
--- Paul Newton <[EMAIL PROTECTED]> wrote:
> Glenn -
>
> There is nothing wrong with the simple configuration of log4j you
> describe. That's the beauty of a well-written set of Java libraries!
> Just create Categories where you require new logging clients - I use
> final static's in the classes. But be careful about using a Category in
> a serializable class.
>
> Remember that you shouldn't really be doing Java IO in a bean. I tried
> out the (unsupported) Socket Appender sample in the distribution which
> works without problem. However, depending on how you use the logging -
> this could generate a lot of network traffic and may impact the
> performance of your container. For some benchmarking work, I ended up
> moving back to default appenders to get max. throughput.
>
> One other point - if you look in the Weblogic docs, you get an almost
> identical API for logging...
>
> regards,
>
> paul.
>
> Glenn Kronschnabl wrote:
> >
> > Can someone post an example of how to use log4j with EJB, please?
> >
> > I have a simple example working, but I don't think I'm using it the
> > right way (I'm just using BasicConfigurator in my default ctor).
> >
> > Some questions to go along with it:
> >
> > What's the best way to integrate log4j with EJB?
> > Reading the log4j manual, it would be useful to be able
> > to initialize the log4j system with a properties file. Is
> > there an easy way to get a properties file via JNDI?
> > Can someone specify the steps on how exactly could this
> > be done? One can't put it under the "java:comp/env" context,
> > can you?
> >
> > Ideally, one could specify a single log4j properties
> > file that could be used for all ejb instances - is this
> > possible?
> >
> > TIA,
> > Glenn
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".