FileDocCategorySizeDatePackage
DeploymentLogger.javaAPI DocGlassfish v2 API3643Fri May 04 22:34:30 BST 2007com.sun.enterprise.deployment.backend

DeploymentLogger

public final class DeploymentLogger extends Object

Fields Summary
private static final Logger
logger
Constructors Summary
private DeploymentLogger()

	
Methods Summary
public static final java.util.logging.Loggerget()

		// the final should cause this to be inlined...
		return logger;
	
public static voidmain(java.lang.String[] args)

        Logger tempLogger = null;
		try
		{
			tempLogger = LogDomains.getLogger(LogDomains.DPL_LOGGER);
			tempLogger.finest("Successfully created Deployment Logger");
		}
		catch(Throwable t)
		{
			try
			{
				tempLogger = LogDomains.getLogger(LogDomains.ROOT_LOGGER);
				tempLogger.warning("Couldn't create Deployment Logger -- created a Root Logger instead");
			}
			catch(Throwable t2)
			{
				// now what?
			}
		}
        finally
        {
            logger = tempLogger;
        }
	
		logger.setLevel(Level.FINEST);
	    logger.info("dadads");
		logger.log(Level.INFO, "info", new String[] {"Yo", "ewe" });
		logger.log(Level.FINE, "fine", new String[] {"Yo", "ewe" });