List of usage examples for org.apache.commons.logging LogFactory getLog
public static Log getLog(String name)
From source file:fr.aliasource.webmail.common.cache.AutoRefreshTask.java
public AutoRefreshTask(CacheManager mgr) { this.logger = LogFactory.getLog(getClass()); this.mgr = mgr; }
From source file:business.controllers.LabProfileController.java
@RequestMapping(value = "/public/labs/{id}", method = RequestMethod.GET) public Lab get(@PathVariable("id") long id) { LogFactory.getLog(getClass()).info("GET /labs/" + id + " for anonymous user"); return labService.findOneActive(id); }
From source file:com.googlecode.flyway.core.util.logging.slf4j.Slf4jLogCreator.java
public Log createLogger(Class<?> clazz) { return new Slf4jLog(LogFactory.getLog(clazz)); }
From source file:com.tnsoft.util.logging.AbstractLog.java
public AbstractLog(String name) { log = LogFactory.getLog(name); }
From source file:com.chnoumis.commons.log.LogAspect.java
@Around("execution(* com.chnoumis..*.*(..))") public Object doTrace(ProceedingJoinPoint pjp) throws Throwable { Log log = LogFactory.getLog(pjp.getSignature().getDeclaringType()); Object retVal = null;//from w ww. j a v a 2 s.co m //if (log.isDebugEnabled()) { log.info("Starting method " + pjp.getSignature().toLongString()); retVal = pjp.proceed(); log.info("Ending method " + pjp.getSignature().toLongString()); // log.info("Method returned " + retVal); //} return retVal; }
From source file:info.bunji.jdbc.logger.impl.CommonsLoggingJdbcLogger.java
public CommonsLoggingJdbcLogger(String url) { super(url); debugLogger = LogFactory.getLog(makeLoggerName(url)); }
From source file:fr.aliasource.webmail.common.LocatorRegistry.java
LocatorRegistry() { logger = LogFactory.getLog(getClass()); locators = new LinkedList<IServerLocator>(); registerLocators(); }
From source file:mockit.integration.logging.MoreLoggingIntegrationsTest.java
@Test public void commonsLoggingShouldLogNothing() { Log log1 = LogFactory.getLog("test"); assertFalse(log1.isTraceEnabled());/*from ww w. jav a2 s. c o m*/ log1.error("testing that log does nothing"); assertFalse(log1.isDebugEnabled()); }
From source file:com.contrastsecurity.cassandra.migration.logging.apachecommons.ApacheCommonsLogCreator.java
public Log createLogger(Class<?> clazz) { return new ApacheCommonsLog(LogFactory.getLog(clazz)); }
From source file:com.opensymphony.xwork2.util.logging.commons.CommonsLoggerFactory.java
@Override protected Logger getLoggerImpl(Class<?> cls) { return new CommonsLogger(LogFactory.getLog(cls)); }