On Mon, 19 Jun 2000 16:06:29 +0530, Nambiar Pratima
<[EMAIL PROTECTED]> wrote:
>     Our requirement is to log messages from various components of our
>application (Servlets and EJBs)
>into a file. This is required for debugging purposes if something fails in
>the production environment. But since IO is not possible from an EJB, we
>are looking for alternatives. We do not want to log these messages into a
>database.
>Our requirement does not seem like an uncommon one. I am interested in
>knowing how this is implemented in other applications.
>Any suggestions would be very helpful.

<vendor>
The jBoss server redirects System.out and System.err to the internal
logging system, to facilitate logging from beans.

For example, if your bean (name Hello) does this:
System.out.println("Hello world");

You will get a log message looking something like this:
<2000-06-19 21:30:22> <Hello> <Hello World>

The log format and what parameters to include is configurable. You can
also add additional filtered logging to separate log files (one/bean for
example).
</vendor>

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.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".

Reply via email to