com.pietschy.command.log
Class PrintStreamLoggerFactory

java.lang.Object
  extended by com.pietschy.command.log.PrintStreamLoggerFactory
All Implemented Interfaces:
LoggerFactory

public class PrintStreamLoggerFactory
extends java.lang.Object
implements LoggerFactory

A factory for PrintStreamLogger instances.


Field Summary
(package private) static java.lang.String _ID_
           
 
Constructor Summary
PrintStreamLoggerFactory(java.io.PrintStream out)
          Creates a new instane that logs to the specified stream.
 
Method Summary
 Logger getLogger(java.lang.Class aClass)
          Creates a new logger instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ID_

static final java.lang.String _ID_
See Also:
Constant Field Values
Constructor Detail

PrintStreamLoggerFactory

public PrintStreamLoggerFactory(java.io.PrintStream out)
Creates a new instane that logs to the specified stream.

Parameters:
out - the stream to log to.
Method Detail

getLogger

public Logger getLogger(java.lang.Class aClass)
Description copied from interface: LoggerFactory
Creates a new logger instance.

Specified by:
getLogger in interface LoggerFactory
Parameters:
aClass - the class being logged.
Returns:
the new logger instance.


Copyright © 2006 - 2007 Andrew Pietsch