Eclipse/FAQ/Logging

package foo.bar;

// JDK 1.4 Logger import java.util.logging.Logger;

// Apache Commons Logging import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory;

//-- Foo public class Foo {

private static Logger logger1= Logger.getLogger( "foo.bar"); private static Log   log2= LogFactory.getLog( Foo.class); public static void main(String[] args) { System.out.println( logger1); System.out.println( log2); } }

Links

 * FAQ Where does System.out and System.err output go?
 * Plugging in a logging framework for Eclipse plug-ins
 * Using the Apache (Jakarta) Commons
 * Top Ten Cool New Features of Java 2SE 1.4
 * An Introduction to the Java Logging API