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.ah.util.Tracer.java

public Tracer(Class<?> srcClass) {
    this.srcClass = srcClass.getSimpleName();
    this.logger = LogFactory.getLog("tracerlog");
}

From source file:com.adaptris.security.TestCompositeKeystore.java

/** @see TestCase */
public TestCompositeKeystore(String testName) {
    super(testName);
    if (logR == null) {
        logR = LogFactory.getLog(TestCompositeKeystore.class);
    }//from   w  w  w .  j  av  a 2 s .  c o  m
}

From source file:net.pandoragames.far.ui.FileSearchThread.java

/**
 * This class is used internally by {@link UIBean UIBean}.
 * @param selector not null/*from  ww  w  .  j  a  v a2  s .co m*/
 * @param findForm not null
 * @param messageSink not null
 */
FileSearchThread(FileSelector selector, FileFilter findForm, MessageBox messageSink) {
    threadLog = LogFactory.getLog(this.getClass());
    criteria = findForm;
    fileSelector = selector;
    messageBox = messageSink;
}

From source file:demo.config.CommonsJdbcLogger.java

@Override
public void logDaoMethodEntering(String callerClassName, String callerMethodName, Object... parameters) {
    Log log = LogFactory.getLog(callerClassName);
    log.info("START " + callerClassName + "#" + callerMethodName);
}

From source file:net.sf.j2ep.ConfigParser.java

/**
 * Standard constructor only specifying the input file. The constructor will
 * parse the config and build a corresponding rule chain with the server
 * mappings included./*from   w w w. j av a2s . co m*/
 * 
 * @param data
 *            The config file containing the XML data structure.
 */

public ConfigParser(File data) {
    log = LogFactory.getLog(ConfigParser.class);
    try {
        LinkedList serverContainer = createServerList(data);
        if (log.isDebugEnabled()) {
            debugServers(serverContainer);
        }
        serverChain = new ServerChain(serverContainer);
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}

From source file:com.adaptris.http.HttpResponse.java

/** @see Object#Object()
 * 
 *
 */
public HttpResponse() {
    logR = LogFactory.getLog(this.getClass());
}

From source file:com.alfaariss.oa.util.idmapper.file.FileMapper.java

/**
 * Constructor.//from   w  w w  . j  a v  a 2  s  .  c  o  m
 */
public FileMapper() {
    _logger = LogFactory.getLog(FileMapper.class);
    _pConfig = new Properties();
    _sMapperParam = null;
    _sSection = null;
}

From source file:edu.umich.robot.soar.SetHeadingCommand.java

public SetHeadingCommand(Identifier wme, SoarAgent agent) throws SoarCommandError {
    super(wme, agent.getEvents(), LogFactory.getLog(SetHeadingCommand.class));
    this.output = agent.getRobotOutput();

    double targetYaw = CommandParameters.requireDouble(wme, IOConstants.YAW);
    targetYaw = agent.getProperties().get(AgentProperties.ANGLE_UNIT).fromView(targetYaw);

    addEvent(new DriveHeadingEvent(targetYaw), AbstractDriveEvent.class);
    this.targetYaw = targetYaw;
}

From source file:net.sf.janos.ui.action.SkipAction.java

public void widgetSelected(SelectionEvent e) {
    SonosControllerShell controllerShell = ApplicationContext.getInstance().getShell();
    SonosController controller = ApplicationContext.getInstance().getController();
    ZonePlayer zone = controller.getCoordinatorForZonePlayer(controllerShell.getZoneList().getSelectedZone());
    try {//  w  w  w . j a  v a2s.c o  m
        AVTransportService avTransportService = zone.getMediaRendererDevice().getAvTransportService();
        avTransportService.next();
    } catch (IOException ex) {
        LogFactory.getLog(getClass()).error("Could not skip forward", ex);
    } catch (UPNPResponseException ex) {
        LogFactory.getLog(getClass()).error("Could not skip forward", ex);
    }
}

From source file:gridool.dht.ops.CreateOperation.java

public Boolean execute(ILocalDirectory directory) throws GridException {
    try {//from  ww  w  . j a v a  2s.c om
        return directory.create(idxName);
    } catch (IndexException e) {
        LogFactory.getLog(CreateOperation.class).error(e.getMessage(), e);
        return false;
    }
}