org.yasl.logging.impl
Class YASLLoggerFactory

java.lang.Object
  extended byorg.yasl.logging.impl.YASLLoggerFactory
All Implemented Interfaces:
IYASLLoggerFactory

public class YASLLoggerFactory
extends Object
implements IYASLLoggerFactory


Constructor Summary
YASLLoggerFactory()
           
 
Method Summary
 void addLoggerFactoryListener(YASLLoggerFactoryListener listener)
           
 String getLogFileName()
          Returns the path and name of the logfile being used.
 Logger getLogger(String name)
          Return an appropriate Logger instance as specified by the name parameter.
 Map getNameToLoggerMap()
          Returns an unmodifiable view of the loggers that the factory has created and the names that each logger is associated with.
 void removeLoggerFactoryListener(YASLLoggerFactoryListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YASLLoggerFactory

public YASLLoggerFactory()
Method Detail

addLoggerFactoryListener

public void addLoggerFactoryListener(YASLLoggerFactoryListener listener)
Specified by:
addLoggerFactoryListener in interface IYASLLoggerFactory

removeLoggerFactoryListener

public void removeLoggerFactoryListener(YASLLoggerFactoryListener listener)
Specified by:
removeLoggerFactoryListener in interface IYASLLoggerFactory

getNameToLoggerMap

public Map getNameToLoggerMap()
Returns an unmodifiable view of the loggers that the factory has created and the names that each logger is associated with.

Specified by:
getNameToLoggerMap in interface IYASLLoggerFactory
Returns:
Map

getLogFileName

public String getLogFileName()
Returns the path and name of the logfile being used.

Specified by:
getLogFileName in interface IYASLLoggerFactory
Returns:
String

getLogger

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

Parameters:
name - the name of the Logger to return
Returns:
Logger