You will need to extend Level, and you will probably then need to extend Logger.
Aaron Hoyt ph: 816.218.2951 VML 250 Richards Rd Suite 255 Kansas City, MO 64116 > -----Original Message----- > From: Bomb Diggy [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 11:14 AM > To: [EMAIL PROTECTED] > Subject: How to simulate System.out.println() ?? > > > Hi, > > I've got Log4j(1.2.3) integrated into my code and it's > rockin. But, there are certain statements I want > printed all the time regardless of the > 'Priority/Level' of my logger - kind of like a > System.out.println(). My setup is basic since I'm > still new to Log4j. > > I would like to effectively do the following: > > static Logger logger = Logger.getLogger( My.class ); > logger.fatal("Some message..."); > > I want 'Some message...' logged any time my logger's > Level is fatal or better, but I would like the > Priority/Level logged to be 'INFO' instead of 'FATAL' > b/c it's not an error that I'm printing, it's just > status-type data. > > Thanks. > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>