Package org.apache.maven.plugin.testing
Class SilentLog
java.lang.Object
org.apache.maven.plugin.testing.SilentLog
- All Implemented Interfaces:
org.apache.maven.plugin.logging.Log
,org.codehaus.plexus.logging.Logger
public class SilentLog
extends Object
implements org.apache.maven.plugin.logging.Log, org.codehaus.plexus.logging.Logger
This logger implements both types of logs currently in use. It can be injected where needed
to turn off logs during testing where they aren't desired.
- Author:
- Brian Fox
-
Field Summary
Fields inherited from interface org.codehaus.plexus.logging.Logger
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
debug
(CharSequence content) By default, do nothing.void
debug
(CharSequence content, Throwable error) By default, do nothing.void
By default, do nothing.void
By default, do nothing.void
By default, do nothing.void
error
(CharSequence content) By default, do nothing.void
error
(CharSequence content, Throwable error) By default, do nothing.void
By default, do nothing.void
By default, do nothing.void
By default, do nothing.void
fatalError
(String message) By default, do nothing.void
fatalError
(String message, Throwable throwable) By default, do nothing.org.codehaus.plexus.logging.Logger
getChildLogger
(String name) getName()
int
void
info
(CharSequence content) By default, do nothing.void
info
(CharSequence content, Throwable error) By default, do nothing.void
By default, do nothing.void
By default, do nothing.void
By default, do nothing.boolean
boolean
boolean
boolean
boolean
By default, do nothing.void
setThreshold
(int threshold) void
warn
(CharSequence content) By default, do nothing.void
warn
(CharSequence content, Throwable error) By default, do nothing.void
By default, do nothing.void
By default, do nothing.void
By default, do nothing.
-
Constructor Details
-
SilentLog
public SilentLog()
-
-
Method Details
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceorg.apache.maven.plugin.logging.Log
- Specified by:
isDebugEnabled
in interfaceorg.codehaus.plexus.logging.Logger
- Returns:
false
- See Also:
-
Log.isDebugEnabled()
-
debug
By default, do nothing.- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.debug(java.lang.CharSequence)
-
debug
By default, do nothing.- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.debug(java.lang.CharSequence, java.lang.Throwable)
-
debug
By default, do nothing.- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.debug(java.lang.Throwable)
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceorg.apache.maven.plugin.logging.Log
- Specified by:
isInfoEnabled
in interfaceorg.codehaus.plexus.logging.Logger
- Returns:
false
- See Also:
-
Log.isInfoEnabled()
-
info
By default, do nothing.- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.info(java.lang.CharSequence)
-
info
By default, do nothing.- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.info(java.lang.CharSequence, java.lang.Throwable)
-
info
By default, do nothing.- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.info(java.lang.Throwable)
-
isWarnEnabled
public boolean isWarnEnabled()By default, do nothing.- Specified by:
isWarnEnabled
in interfaceorg.apache.maven.plugin.logging.Log
- Specified by:
isWarnEnabled
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Log.isWarnEnabled()
-
warn
By default, do nothing.- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.warn(java.lang.CharSequence)
-
warn
By default, do nothing.- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.warn(java.lang.CharSequence, java.lang.Throwable)
-
warn
By default, do nothing.- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.warn(java.lang.Throwable)
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceorg.apache.maven.plugin.logging.Log
- Specified by:
isErrorEnabled
in interfaceorg.codehaus.plexus.logging.Logger
- Returns:
false
- See Also:
-
Log.isErrorEnabled()
-
error
By default, do nothing.- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.error(java.lang.CharSequence)
-
error
By default, do nothing.- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.error(java.lang.CharSequence, java.lang.Throwable)
-
error
By default, do nothing.- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
- See Also:
-
Log.error(java.lang.Throwable)
-
debug
By default, do nothing.- Specified by:
debug
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.debug(java.lang.String)
-
debug
By default, do nothing.- Specified by:
debug
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.debug(java.lang.String, java.lang.Throwable)
-
info
By default, do nothing.- Specified by:
info
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.info(java.lang.String)
-
info
By default, do nothing.- Specified by:
info
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.info(java.lang.String, java.lang.Throwable)
-
warn
By default, do nothing.- Specified by:
warn
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.warn(java.lang.String)
-
warn
By default, do nothing.- Specified by:
warn
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.warn(java.lang.String, java.lang.Throwable)
-
error
By default, do nothing.- Specified by:
error
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.error(java.lang.String)
-
error
By default, do nothing.- Specified by:
error
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.error(java.lang.String, java.lang.Throwable)
-
fatalError
By default, do nothing.- Specified by:
fatalError
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.fatalError(java.lang.String)
-
fatalError
By default, do nothing.- Specified by:
fatalError
in interfaceorg.codehaus.plexus.logging.Logger
- See Also:
-
Logger.fatalError(java.lang.String, java.lang.Throwable)
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()- Specified by:
isFatalErrorEnabled
in interfaceorg.codehaus.plexus.logging.Logger
- Returns:
false
- See Also:
-
Logger.isFatalErrorEnabled()
-
getChildLogger
- Specified by:
getChildLogger
in interfaceorg.codehaus.plexus.logging.Logger
- Returns:
null
- See Also:
-
Logger.getChildLogger(java.lang.String)
-
getThreshold
public int getThreshold()- Specified by:
getThreshold
in interfaceorg.codehaus.plexus.logging.Logger
- Returns:
0
- See Also:
-
Logger.getThreshold()
-
getName
- Specified by:
getName
in interfaceorg.codehaus.plexus.logging.Logger
- Returns:
null
- See Also:
-
Logger.getName()
-
setThreshold
public void setThreshold(int threshold) - Specified by:
setThreshold
in interfaceorg.codehaus.plexus.logging.Logger
-