Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Eclipse/FAQ/Logging

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

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