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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddebug(CharSequence content) By default, do nothing.voiddebug(CharSequence content, Throwable error) By default, do nothing.voidBy default, do nothing.voidBy default, do nothing.voidBy default, do nothing.voiderror(CharSequence content) By default, do nothing.voiderror(CharSequence content, Throwable error) By default, do nothing.voidBy default, do nothing.voidBy default, do nothing.voidBy default, do nothing.voidfatalError(String message) By default, do nothing.voidfatalError(String message, Throwable throwable) By default, do nothing.org.codehaus.plexus.logging.LoggergetChildLogger(String name) getName()intvoidinfo(CharSequence content) By default, do nothing.voidinfo(CharSequence content, Throwable error) By default, do nothing.voidBy default, do nothing.voidBy default, do nothing.voidBy default, do nothing.booleanbooleanbooleanbooleanbooleanBy default, do nothing.voidsetThreshold(int threshold) voidwarn(CharSequence content) By default, do nothing.voidwarn(CharSequence content, Throwable error) By default, do nothing.voidBy default, do nothing.voidBy default, do nothing.voidBy default, do nothing.
-
Constructor Details
-
SilentLog
public SilentLog()
-
-
Method Details
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceorg.apache.maven.plugin.logging.Log- Specified by:
isDebugEnabledin interfaceorg.codehaus.plexus.logging.Logger- Returns:
false- See Also:
-
debug
By default, do nothing.- Specified by:
debugin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
debug
By default, do nothing.- Specified by:
debugin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
debug
By default, do nothing.- Specified by:
debugin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceorg.apache.maven.plugin.logging.Log- Specified by:
isInfoEnabledin interfaceorg.codehaus.plexus.logging.Logger- Returns:
false- See Also:
-
info
By default, do nothing.- Specified by:
infoin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
info
By default, do nothing.- Specified by:
infoin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
info
By default, do nothing.- Specified by:
infoin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
isWarnEnabled
public boolean isWarnEnabled()By default, do nothing.- Specified by:
isWarnEnabledin interfaceorg.apache.maven.plugin.logging.Log- Specified by:
isWarnEnabledin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
warn
By default, do nothing.- Specified by:
warnin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
warn
By default, do nothing.- Specified by:
warnin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
warn
By default, do nothing.- Specified by:
warnin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceorg.apache.maven.plugin.logging.Log- Specified by:
isErrorEnabledin interfaceorg.codehaus.plexus.logging.Logger- Returns:
false- See Also:
-
error
By default, do nothing.- Specified by:
errorin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
error
By default, do nothing.- Specified by:
errorin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
error
By default, do nothing.- Specified by:
errorin interfaceorg.apache.maven.plugin.logging.Log- See Also:
-
debug
By default, do nothing.- Specified by:
debugin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
debug
By default, do nothing.- Specified by:
debugin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
info
By default, do nothing.- Specified by:
infoin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
info
By default, do nothing.- Specified by:
infoin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
warn
By default, do nothing.- Specified by:
warnin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
warn
By default, do nothing.- Specified by:
warnin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
error
By default, do nothing.- Specified by:
errorin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
error
By default, do nothing.- Specified by:
errorin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
fatalError
By default, do nothing.- Specified by:
fatalErrorin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
fatalError
By default, do nothing.- Specified by:
fatalErrorin interfaceorg.codehaus.plexus.logging.Logger- See Also:
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()- Specified by:
isFatalErrorEnabledin interfaceorg.codehaus.plexus.logging.Logger- Returns:
false- See Also:
-
getChildLogger
- Specified by:
getChildLoggerin interfaceorg.codehaus.plexus.logging.Logger- Returns:
null- See Also:
-
getThreshold
public int getThreshold()- Specified by:
getThresholdin interfaceorg.codehaus.plexus.logging.Logger- Returns:
0- See Also:
-
getName
- Specified by:
getNamein interfaceorg.codehaus.plexus.logging.Logger- Returns:
null- See Also:
-
setThreshold
public void setThreshold(int threshold) - Specified by:
setThresholdin interfaceorg.codehaus.plexus.logging.Logger
-