SLF4J 1.0

org.slf4j.impl
Class SimpleLoggerFactory

java.lang.Object
  |
  +--org.slf4j.impl.SimpleLoggerFactory
All Implemented Interfaces:
ILoggerFactory

public class SimpleLoggerFactory
extends java.lang.Object
implements ILoggerFactory

An implementation of ILoggerFactory which always returns SimpleLogger instances.

Author:
Ceki Gülcü

Field Summary
static SimpleLoggerFactory INSTANCE
          A default instance of SimpleLoggerFactory.
 
Constructor Summary
SimpleLoggerFactory()
           
 
Method Summary
 Logger getLogger(java.lang.String name)
          Return an appropriate SimpleLogger instance by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SimpleLoggerFactory INSTANCE
A default instance of SimpleLoggerFactory. This default instance may be used to retrieve a simple logger as a last-resort fallback logger. This instance is designed to be used by a very specific group of users, namely for those developing fully-fledged logging systems (e.g. log4j or logback). It is not intended for end-users of the SLF4J API.

Constructor Detail

SimpleLoggerFactory

public SimpleLoggerFactory()
Method Detail

getLogger

public Logger getLogger(java.lang.String name)
Return an appropriate SimpleLogger instance by name.

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

Copyright 2004-2006 SLF4J.ORG, QOS.ch