maravilloso
10/25/2013 - 5:25 AM

Configurar trazas simples por consola

Configurar trazas simples por consola

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Level;
import org.apache.log4j.SimpleLayout;

ConsoleAppender appender = new ConsoleAppender(new SimpleLayout(), "System.out") ;
appender.setThreshold(Level.INFO);
BasicConfigurator.configure(appender);