Thanks for the reply Phillip, So, it sounds like log4j can not log to a screen unless you create your own subclass of the ConsoleAppender.
Is it me, or does that not just sound weird? Is there a reason why this rather common need does not already exist in log4j as a ScreenAppender? How do you other developers tell a user that an error occurred? Have you all essentially written your own ScreenAppenders? Application Architect [EMAIL PROTECTED] Ext 6418 -----Original Message----- From: Philip Denno [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 4:00 PM To: Log4J Users List Subject: RE: To Screen *NOT* to Console 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]
