All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ocpsoft.logging.slf4j.SLF4JLogAdapterFactory Maven / Gradle / Ivy

There is a newer version: 1.0.5.Final
Show newest version
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);
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy