Simple Log 2.0.1
[grlea]

org.grlea.log.adapters.slf4j
Class Slf4jAdapterFactory

java.lang.Object
  extended byorg.grlea.log.adapters.slf4j.Slf4jAdapterFactory
All Implemented Interfaces:
ILoggerFactory

public class Slf4jAdapterFactory
extends java.lang.Object
implements ILoggerFactory

An implementation of ILoggerFactory which always returns Slf4jAdapter instances.

Version:
$Revision: 1.2 $
Author:
Graham Lea

Constructor Summary
Slf4jAdapterFactory()
          Creates a new Slf4jAdapterFactory.
 
Method Summary
 Logger getLogger(java.lang.String loggerName)
          Return an appropriate Logger instance as specified by the name parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slf4jAdapterFactory

public Slf4jAdapterFactory()
Creates a new Slf4jAdapterFactory.

Method Detail

getLogger

public final Logger getLogger(java.lang.String loggerName)
Description copied from interface: ILoggerFactory
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:
loggerName - the name of the Logger to return

Copyright (c) 2004-2006, Graham Lea. All rights reserved.