Hello
I am trying to send stdout (system.out.println) through to the log4j logger
but i dont want to use an extra configuration file.  I know there is a way
to do this through an external file with a line like: 
"log4j.rootCategory = DEBUG, stderr, stdout" 
but i would just like to do this in a class

I have the following in my class:

public class Util_Logger{
    static Logger logger = Logger.getRootLogger();

   static{
       FileAppender appender = new FileAppender(new SimpleLayout(),
LOG_LOCATION);
       logger.addAppender(appender);
       logger.setLevel(LEVEL.ERROR);
    }
}

somebody help please??
-- 
View this message in context: 
http://old.nabble.com/stdout-in-configuration-tp27261344p27261344.html
Sent from the Log4j - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to