Eclipse/FAQ/Logging
Appearance
(Redirected from 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); } }