Class TestLoggerFactory
- java.lang.Object
-
- org.eclipse.aether.internal.test.util.TestLoggerFactory
-
- All Implemented Interfaces:
LoggerFactory
public final class TestLoggerFactory extends java.lang.Object implements LoggerFactory
A logger factory that writes to somePrintStream
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
TestLoggerFactory.TestLogger
-
Constructor Summary
Constructors Constructor Description TestLoggerFactory()
Creates a new logger factory that writes toSystem.out
.TestLoggerFactory(java.io.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(java.lang.String name)
Gets a logger for a class with the specified name.
-
-
-
Field Detail
-
logger
private final Logger logger
-
-
Method Detail
-
getLogger
public Logger getLogger(java.lang.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
.
-
-