public final class TestLoggerFactory extends java.lang.Object implements LoggerFactory
PrintStream.| Modifier and Type | Class and Description |
|---|---|
private static class |
TestLoggerFactory.TestLogger |
| Constructor and Description |
|---|
TestLoggerFactory()
Creates a new logger factory that writes to
System.out. |
TestLoggerFactory(java.io.PrintStream out)
Creates a new logger factory that writes to the specified print stream.
|
| Modifier and Type | Method and Description |
|---|---|
Logger |
getLogger(java.lang.String name)
Gets a logger for a class with the specified name.
|
private final Logger logger
public TestLoggerFactory()
System.out.public TestLoggerFactory(java.io.PrintStream out)
public Logger getLogger(java.lang.String name)
LoggerFactorygetLogger in interface LoggerFactoryname - The name of the class requesting a logger, must not be null.null.