Can I use 2 loggers (e.g. to write to 2 files) in one Action?

2003-06-23 Thread Pingili, Madhupal
Hi All, Can I use two loggers in one Action? I have set the Commons logging to use log4j. I need to log error messages in one file and all other messages in another file. In log4j.properties, I have following lines: # log4j properties file log4j.rootLogger=DEBUG, stdout, rolling

Re: Can I use 2 loggers (e.g. to write to 2 files) in one Action?

2003-06-23 Thread FrenzyGNX
Log4J (and most other logging packages) will log a message if its level = the defined level. So log4j.rootLogger=DEBUG, stdout, rolling will log FATAL, ERROR, INFO, DEBUG into rolling. --- Pingili, Madhupal [EMAIL PROTECTED] wrote: Hi All, Can I use two loggers in one Action? I have set the