logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Hoyt" <ah...@vml.com>
Subject RE: How to simulate System.out.println() ??
Date Wed, 12 Jun 2002 17:45:35 GMT
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:techguy_chicago@yahoo.com]
> Sent: Wednesday, June 12, 2002 11:14 AM
> To: log4j-user@jakarta.apache.org
> 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:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message