Log Utility

2008-04-04 Thread Tim Nguyen
Hi, I am writing a Log Utility to check the log level first before creating a string object. For example, if my log level is INFO, and I call: log.debug(new String(test)); It will still instantiate the String object even thought it doesn't log anything. So I would like to write an Utility to

Re: Log Utility

2008-04-04 Thread Tim Nguyen
: if (this.debug) { logger.debug(new String(test)); } Hope this helps. Robert Pepersack Senior Lead Developer Maryland Insurance Administration 410-468-2054 Tim Nguyen [EMAIL PROTECTED] 04/04/2008 3:02 PM Hi, I am writing a Log Utility to check the log level first

Write a bean to a file

2008-01-28 Thread Tim Nguyen
Hi, I am a newbie of Log4j. I wonder if anyone has an example or an utility of how to write a bean to a file using Log4j. Thank you! Be a better friend, newshound, and know-it-all with Yahoo! Mobile.