FileDocCategorySizeDatePackage
Log4JDemo2.javaAPI DocExample491Sat Mar 13 15:40:16 GMT 2004None

Log4JDemo2

public class Log4JDemo2 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


		Logger myLogger = Logger.getLogger("com.darwinsys");

		try {
			Object o = new Object();
			if (o != null) {	// bogus, just to show logging
				throw new IllegalArgumentException("Just testing");
			}
			myLogger.info("I created an object: " + o);
		} catch (Exception ex) {
			// XXX
			myLogger.error("Caught Exception: " + ex);
		}