org.ocpsoft.logging.slf4j.SLF4JLogAdapterFactory Maven / Gradle / Ivy
package org.ocpsoft.logging.slf4j;
import org.ocpsoft.logging.Logger;
import org.ocpsoft.logging.spi.LogAdapterFactory;
/**
* Implementation of {@link LogAdapterFactory} that creates log adapters delegating log events to SLF4J.
*
* @author Christian Kaltepoth
*/
public class SLF4JLogAdapterFactory implements LogAdapterFactory
{
@Override
public int priority()
{
return 5;
}
@Override
public Logger createLogAdapter(final String name)
{
return new SLF4JLogAdapter(name);
}
}