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 java.lang.Object implements org.apache.maven.plugin.surefire.log.api.ConsoleLogger
Wrapper logger of miscellaneous implementations ofLogger
. This instance is synchronized. The logger operations are mutually exclusive to standard out, standard err and console err/warn/info/debug logger operations, seeDefaultReporterFactory
,TestSetRunListener
.- Since:
- 2.20
- Author:
- Tibor Digana (tibor17)
- See Also:
ConsoleLogger
-
-
Constructor Summary
Constructors Constructor Description PluginConsoleLogger(org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.CharSequence content, java.lang.Throwable error)
void
debug(java.lang.String message)
void
error(java.lang.String message)
void
error(java.lang.String message, java.lang.Throwable t)
void
error(java.lang.Throwable t)
void
info(java.lang.String message)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isInfoEnabled()
boolean
isWarnEnabled()
void
warning(java.lang.CharSequence content, java.lang.Throwable error)
void
warning(java.lang.String message)
-
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
debug
public void debug(java.lang.String message)
- Specified by:
debug
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
debug
public void debug(java.lang.CharSequence content, java.lang.Throwable error)
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
info
public void info(java.lang.String message)
- Specified by:
info
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
warning
public void warning(java.lang.String message)
- Specified by:
warning
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
warning
public void warning(java.lang.CharSequence content, java.lang.Throwable error)
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
public void error(java.lang.String message)
- Specified by:
error
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
public void error(java.lang.String message, java.lang.Throwable t)
- Specified by:
error
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
error
public void error(java.lang.Throwable t)
- Specified by:
error
in interfaceorg.apache.maven.plugin.surefire.log.api.ConsoleLogger
-
-