Class TestLoggerFactory
- java.lang.Object
-
- org.eclipse.aether.internal.test.util.TestLoggerFactory
-
- All Implemented Interfaces:
LoggerFactory
public final class TestLoggerFactory extends Object implements LoggerFactory
A logger factory that writes to somePrintStream
.
-
-
Constructor Summary
Constructors Constructor Description TestLoggerFactory()
Creates a new logger factory that writes toSystem.out
.TestLoggerFactory(PrintStream out)
Creates a new logger factory that writes to the specified print stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Logger
getLogger(String name)
Gets a logger for a class with the specified name.
-
-
-
Constructor Detail
-
TestLoggerFactory
public TestLoggerFactory()
Creates a new logger factory that writes toSystem.out
.
-
TestLoggerFactory
public TestLoggerFactory(PrintStream out)
Creates a new logger factory that writes to the specified print stream.
-
-
Method Detail
-
getLogger
public Logger getLogger(String name)
Description copied from interface:LoggerFactory
Gets a logger for a class with the specified name.- Specified by:
getLogger
in interfaceLoggerFactory
- Parameters:
name
- The name of the class requesting a logger, must not benull
.- Returns:
- The requested logger, never
null
.
-
-