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.lfv.lanzius.application.AutoTester.java

public AutoTester(ViewEventHandler handler) {
    log = LogFactory.getLog(getClass());
    this.handler = handler;
}

From source file:com.alfaariss.oa.authentication.password.digest.PlainTextDigest.java

/**
 * Constructor.
 */
public PlainTextDigest() {

    _logger = LogFactory.getLog(this.getClass());
}

From source file:com.alfaariss.oa.engine.user.provisioning.translator.standard.converter.exist.ExistConverter.java

/**
 * Creates the object.
 */
public ExistConverter() {
    _logger = LogFactory.getLog(ExistConverter.class);
}

From source file:de.uni_rostock.goodod.test.BasicImportingNormalizerTestCase.java

@Override
@Before//from w ww  .  j a  va2s.  com
public void setUp() throws OWLOntologyCreationException {
    super.setUp();
    IRI physicalTestBioTop = null;
    try {
        physicalTestBioTop = IRI.create(BasicImportingNormalizerTestCase.class
                .getResource(File.separatorChar + "biotoplite.owl").toURI());
    } catch (URISyntaxException e) {
        LogFactory.getLog(BasicImportingNormalizerTestCase.class).error("Could not get phyiscal BioTopURI", e);
    }
    SimpleIRIMapper bioTopMapper = new SimpleIRIMapper(biotopCanonical, physicalTestBioTop);
    manager.addIRIMapper(bioTopMapper);
    OWLOntologyLoaderConfiguration loaderConf = new OWLOntologyLoaderConfiguration();
    loaderConf = loaderConf.addIgnoredImport(biotopA);
    loaderConf = loaderConf.addIgnoredImport(biotopB);
    loaderConf = loaderConf.setMissingImportHandlingStrategy(MissingImportHandlingStrategy.SILENT);

    Map<IRI, IRI> importMap = new HashMap<IRI, IRI>();
    importMap.put(biotopA, biotopCanonical);
    importMap.put(biotopB, biotopCanonical);
    normalizer = new BasicImportingNormalizerFactory(importMap, loaderConf);
}

From source file:net.community.chest.gitcloud.facade.backend.git.GitBackendServlet.java

public GitBackendServlet() {
    logger = LogFactory.getLog(getClass());
}

From source file:com.openedit.users.filesystem.FileSystemObject.java

private Log getLog() {
    if (log == null) {
        log = LogFactory.getLog(FileSystemObject.class);
    }
    return log;
}

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

@Test
public void testExceptionsPropagated() throws Exception {
    DefaultDependentPrioritizedTask task = new DefaultDependentPrioritizedTask(new ExceptionGenerator());
    try {//from ww w.j av  a 2  s.c o m
        task.call();
        fail("should have thrown an exception");
    } catch (AssertionError e) {
        throw e;
    } catch (Throwable t) {
        // correct behavior
    }
    // now test within taskControl
    task = new DefaultDependentPrioritizedTask(new ExceptionGenerator());
    TaskGroup<?> taskGroup = new TaskGroup<Object>("Test");
    Log logger = LogFactory.getLog(this.getClass());
    taskGroup.setLog(logger);
    TaskControl taskControl = new TaskControl(logger);
    taskControl.setStayActive(false);
    taskControl.setLog(logger);
    taskGroup.addTask(task);
    taskControl.addTaskGroup(taskGroup);
    Thread t = new Thread(taskControl);
    t.start();
    t.join();
    assertNotNull(taskGroup.getException(), "Should throw Exception");
}

From source file:com.miraclelinux.historygluon.ConnectionThread.java

public ConnectionThread(int port, StorageDriver driver) {
    m_port = port;
    m_driver = driver;
    m_log = LogFactory.getLog(ConnectionThread.class);
}

From source file:com.jaspersoft.jasperserver.export.util.CommandOut.java

protected CommandOut(String loggerName) {
    logger = LogFactory.getLog(loggerName);
}

From source file:arena.utils.Base64.java

/**
 * Encodes a string into base 64 format equals-terminated
 *//*from w  ww. ja v  a 2s  .c o  m*/
public static String encodeBase64(byte[] inBytes) {
    char[] outChars = new char[(int) Math.ceil(inBytes.length / 3f) * 4];
    LogFactory.getLog(Base64.class)
            .debug("Base64 encoding: in=" + inBytes.length + " bytes, out=" + outChars.length + " chars");
    encodeBase64(inBytes, outChars);

    return new String(outChars);
}