Class PluginConsoleLogger
java.lang.Object
org.apache.maven.plugin.surefire.log.PluginConsoleLogger
- All Implemented Interfaces:
org.apache.maven.plugin.surefire.log.api.ConsoleLogger
public final class PluginConsoleLogger
extends Object
implements org.apache.maven.plugin.surefire.log.api.ConsoleLogger
TODO remove this as thread safety should be handled by the underlying logging framework no need to add complexity
Wrapper logger of miscellaneous implementations of
Logger.
This instance is synchronized. The logger operations are mutually exclusive to standard out, standard err and console
err/warn/info/debug logger operations, see DefaultReporterFactory,
TestSetRunListener.- Since:
- 2.20
- Author:
- Tibor Digana (tibor17)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddebug(CharSequence content, Throwable error) voidvoidvoidvoidvoidbooleanbooleanbooleanbooleanvoidwarning(CharSequence content, Throwable error) void
-
Constructor Details
-
PluginConsoleLogger
public PluginConsoleLogger(org.slf4j.Logger logger)
-
-
Method Details
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
debug
- Specified by:
debugin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
debug
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
info
- Specified by:
infoin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
warning
- Specified by:
warningin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
warning
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
- Specified by:
errorin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
- Specified by:
errorin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
- Specified by:
errorin interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-