I assume that your application has a logger configured and is using the
console appender. If so then you need to create your own appender by
subclassing (look in the log4j javadoc for the correct class to use).

You would then update your config file to add your appender to the
logger. Any messages generated and sent to the logger would then go to
your custom appender as well as the console appender.

Cheers,
Philip. 


-----Original Message-----
From: Slaughter, Stan [mailto:[EMAIL PROTECTED] 
Sent: December 13, 2005 1:29 PM
To: 'Log4J Users List'
Subject: To Screen *NOT* to Console


What do I need to do to set up an Appender to log to the screen not the
console?

The equivalent of out.print in a JSP file instead of System.out.print

I need to let the user know when an error occurs and logging error
messages to a console does not do it.  I'd think a common task would be
to send messages to the screen, yet I can't find a Screen Appender.
What am I overlooking?

Does log4j-1.2.12 not support this?  Will I have to duplicate all my
error messages with an equivalent out.print statement?

Application Architect
[EMAIL PROTECTED] 
Ext 6418



-----------------------------------------
The information in this message may be proprietary and/or confidential,
and protected from disclosure.  If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering
this message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please
notify First Data immediately by replying to this message and deleting
it from your computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to