org.ops4j.pax.logging.slf4j
Class Slf4jLoggerFactory

java.lang.Object
  extended by org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory
All Implemented Interfaces:
ILoggerFactory

public class Slf4jLoggerFactory
extends java.lang.Object
implements ILoggerFactory


Constructor Summary
Slf4jLoggerFactory()
           
 
Method Summary
static void dispose()
          Pax Logging internal method.
 Logger getLogger(java.lang.String name)
          Return an appropriate Logger instance as specified by the name parameter.
static void release()
          Releases any held resources and makes the class ready for garbage collection.
static void setBundleContext(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slf4jLoggerFactory

public Slf4jLoggerFactory()
Method Detail

setBundleContext

public static void setBundleContext(org.osgi.framework.BundleContext context)

release

public static void release()
Releases any held resources and makes the class ready for garbage collection.


getLogger

public Logger getLogger(java.lang.String name)
Return an appropriate Logger instance as specified by the name parameter.

Null-valued name arguments are considered invalid.

Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.

Specified by:
getLogger in interface ILoggerFactory
Parameters:
name - the name of the Logger to return

dispose

public static void dispose()
Pax Logging internal method. Should never be used directly.



Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.