FileDocCategorySizeDatePackage
LoggerHelper.javaAPI DocGlassfish v2 API5658Fri May 04 22:23:14 BST 2007com.sun.enterprise.config.backup

LoggerHelper

public class LoggerHelper extends Object

Fields Summary
private static Logger
logger
Constructors Summary
private LoggerHelper()

	
Methods Summary
static final voidfine(java.lang.String s)

 logger.fine(s); 
static final voidfine(java.lang.String s, java.lang.Object o)

 logger.log(Level.FINE, s, new Object[] { o }); 
static final voidfiner(java.lang.String s)

 logger.finer(s); 
static final voidfiner(java.lang.String s, java.lang.Object o)

 logger.log(Level.FINER, s, new Object[] { o }); 
static final voidfinest(java.lang.String s)

 logger.finest(s); 
static final voidfinest(java.lang.String s, java.lang.Object o)

 logger.log(Level.FINEST, s, new Object[] { o }); 
static final java.util.logging.Loggerget()

		// the final should cause this to be inlined...
		return logger;
	
static final voidinfo(java.lang.String s)

 logger.info(s); 
static final voidinfo(java.lang.String s, java.lang.Object o)

 logger.log(Level.INFO, s, new Object[] { o }); 
static final voidsetLevel(BackupRequest req)

		// the final should cause this to be inlined...
		if(req.terse)
			logger.setLevel(Level.WARNING);
		else if(req.verbose)
			logger.setLevel(Level.FINEST);
		else
			logger.setLevel(Level.INFO);
		
		/* test logging messages
		 String me = System.getProperty("user.name");
		if(me != null && me.equals("bnevins"))
		{
			logger.finest("finest");
			logger.finer("finer");
			logger.fine("fine");
			logger.info("info");
			logger.warning("warning");
			logger.severe("severe");
		}
		 **/
	
static final voidsevere(java.lang.String s)

 logger.severe(s); 
static final voidsevere(java.lang.String s, java.lang.Object o)

 logger.log(Level.SEVERE, s, new Object[] { o }); 
static final voidwarning(java.lang.String s)

 logger.warning(s); 
static final voidwarning(java.lang.String s, java.lang.Object o)

 logger.log(Level.WARNING, s, new Object[] { o });