List of usage examples for org.apache.commons.logging LogFactory getLog
public static Log getLog(String name)
From source file:com.jpeterson.util.http.RangeFactoryTest.java
/** * Create the test case// w w w . ja va 2 s . c o m * * @param testName * name of the test case */ public RangeFactoryTest(String testName) { super(testName); logger = LogFactory.getLog(this.getClass()); logger.debug("RangeFactoryTest"); }
From source file:com.opensymphony.xwork2.util.logging.commons.CommonsLoggerFactory.java
@Override protected Logger getLoggerImpl(String name) { return new CommonsLogger(LogFactory.getLog(name)); }
From source file:com.github.veithen.ulog.itest.jul.Test.java
public void testCommonsLogging() { Log log = LogFactory.getLog("test"); String msg = "test with commons logging"; log.info(msg);//from ww w . j a v a2 s . com assertEquals(msg, handler.getLastRecord().getMessage()); }
From source file:com.mindquarry.desktop.model.task.TaskTransformer.java
public TaskTransformer() { log = LogFactory.getLog(TaskTransformer.class); }
From source file:fr.aliasource.webmail.folder.ActionSubscribeFolderAction.java
public ActionSubscribeFolderAction() { logger = LogFactory.getLog(getClass()); }
From source file:com.chnoumis.commons.log.LogInterceptor.java
public void before(Method arg0, Object[] arg1, Object arg2) throws Throwable { log = LogFactory.getLog(arg2.getClass()); log.info("Beginning method: " + arg0.getName()); }
From source file:fr.aliasource.utils.RunnableExtensionLoader.java
public RunnableExtensionLoader() { logger = LogFactory.getLog(getClass()); }
From source file:com.github.veithen.ulog.itest.log4j.Test.java
public void testCommonsLogging() { Log log = LogFactory.getLog("test"); String msg = "test with commons logging"; log.info(msg);/* w w w . j a va 2 s . c o m*/ assertEquals(msg, appender.getLastEvent().getMessage()); }
From source file:fr.aliasource.webmail.folder.ActionUnSubscribeFolderAction.java
public ActionUnSubscribeFolderAction() { logger = LogFactory.getLog(getClass()); }
From source file:com.laxser.blitz.controllers.BlitzToolsInterceptor.java
@Override public Object before(Invocation inv) throws Exception { Class<?> controllerClass = inv.getControllerClass(); if (!LogFactory.getLog(controllerClass).isDebugEnabled()) { String msg = String.format("Warning: Set logger.%s to debug level first. " + "<br> Blitz-Version: %s", controllerClass.getName(), BlitzVersion.getVersion()); return Utils.wrap(msg); }//from ww w .java 2s . c o m return true; }