FileDocCategorySizeDatePackage
Log14Demo2.javaAPI DocExample573Sat Mar 13 15:40:16 GMT 2004None

Log14Demo2

public class Log14Demo2 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 (Throwable t) {
			LogRecord msg = new LogRecord(Level.SEVERE,
				"Caught exception ");
			msg.setThrown(t);
			myLogger.log(msg);
		}