FileDocCategorySizeDatePackage
Log.javaAPI DocGlassfish v2 API2949Fri May 04 22:35:00 BST 2007None

Log

public class Log extends Object
A utility Logging class during development.
author
Danny Coward

Fields Summary
private static PrintStream
out
public static boolean
test
private static com.sun.enterprise.util.LocalStringManagerImpl
localStrings
Constructors Summary
Methods Summary
public static voidprint(java.lang.Object sender, java.lang.Object o)
Prints the object called by the sender.

    
           
           
	if (o instanceof Throwable) {
	    out.println(((Throwable) o).getMessage());
	    ((Throwable) o).printStackTrace(out);
	    out.println(localStrings.getLocalString(
						    "enterprise.tools.deployment.main.senderwas",
						    "Sender was {0}", new Object[] {sender}));
	} else {
	    out.println(localStrings.getLocalString(
						    "enterprise.tools.deployment.main.sender",
						    "Sender object {0} : {1}", new Object[] {sender, o}));
	}