Example usage for org.apache.commons.logging LogFactory getLog

List of usage examples for org.apache.commons.logging LogFactory getLog

Introduction

In this page you can find the example usage for org.apache.commons.logging LogFactory getLog.

Prototype

public static Log getLog(String name) 

Source Link

Document

Convenience method to return a named logger.

Usage

From source file:com.alfaariss.oa.authentication.password.htpasswd.HtPasswdHandler.java

/**
 * Constructor
 */
public HtPasswdHandler() {
    _logger = LogFactory.getLog(this.getClass());
}

From source file:com.amazonaws.metrics.ServiceLatencyProvider.java

public double getDurationMilli() {
    if (endNano == startNano) {
        LogFactory.getLog(getClass()).debug("Likely to be a missing invocation of endTiming().");
    }//  ww w . jav a  2  s. c o m
    return TimingInfo.durationMilliOf(startNano, endNano);
}

From source file:com.sworddance.taskcontrol.TestTaskControl.java

@SuppressWarnings("unchecked")
@DataProvider(name = "testObjects")
protected Object[][] getTestObjects() {
    TaskGroup taskGroup = new TaskGroup("taskGroup");
    taskGroup.setLog(LogFactory.getLog(this.getClass()));
    return new Object[][] { new Object[] { taskGroup, new OrderedOut(), LogFactory.getLog(this.getClass()) } };
}

From source file:fr.aliasource.index.core.SearchDirector.java

public SearchDirector(IIndexingParameters parameters) {
    logger = LogFactory.getLog(getClass());
    crawlers = Collections.synchronizedMap(new HashMap<String, ICrawler>());
    runnables = Collections.synchronizedMap(new HashMap<ICrawler, RunnableCrawler>());
    runningCrawlers = Collections.synchronizedMap(new HashMap<String, Thread>());
    idxMgr = new IndexManager(parameters);
    stopped = false;//from   w  ww. j av a  2  s  . c  om
    this.parameters = parameters;
    registerCrawlers();
    logger.info("SearchDirector created.");
}

From source file:mangotiger.io.RecursiveFileIteratorTest.java

private static Log log() {
    return LogFactory.getLog(RecursiveFileIteratorTest.class);
}

From source file:fr.aliasource.webmail.proxy.impl.CompletionRegistry.java

public CompletionRegistry(ProxyConfiguration conf, LocatorRegistry locator) {
    logger = LogFactory.getLog(getClass());
    this.conf = conf;
    completionComparator = new Comparator<Completion>() {
        public int compare(Completion o1, Completion o2) {
            return o1.getCompareValue().compareTo(o2.getCompareValue());
        }//from w ww  .  j  a  v  a  2s . co m
    };
    factories = new LinkedList<ICompletionSourceFactory>();

    loadPlugins(conf);
}

From source file:com.chnoumis.commons.log.LogInterceptor.java

public void afterThrowing(Method m, Object[] args, Object target, Throwable ex) {
    log = LogFactory.getLog(target.getClass());
    log.info("Exception in method: " + m.getName() + " Exception is: " + ex.getMessage());
}

From source file:com.octo.captcha.service.AbstractCaptchaService.java

protected AbstractCaptchaService(CaptchaStore captchaStore, CaptchaEngine captchaEngine) {
    if (captchaEngine == null || captchaStore == null)
        throw new IllegalArgumentException("Store or gimpy can't be null");
    this.engine = captchaEngine;
    this.store = captchaStore;

    logger = LogFactory.getLog(this.getClass());

    logger.info("Init " + this.store.getClass().getName());
    this.store.initAndStart();
}

From source file:cl.borrego.foundation.util.Message.java

public void dumpFormattedMessage(Class clazz, LevelEnum level, String key, Object... arguments) {
    final Log log = LogFactory.getLog(clazz.getName());
    dumpFormattedMessage(log, level, key, arguments);
}

From source file:com.cyclopsgroup.waterview.velocity.WaterviewLogSystem.java

/**
 * Override or implement method of parent class or interface
 *
 * @see org.apache.velocity.runtime.log.LogSystem#init(org.apache.velocity.runtime.RuntimeServices)
 *///w ww .j ava 2  s.c o  m
public void init(RuntimeServices services) throws Exception {
    String category = services.getString("runtime.log.category", "com.cyclopsgroup.clib.site.velocity");
    logger = LogFactory.getLog(category);
}