Class MavenFailOnSeverityLogger
java.lang.Object
org.slf4j.helpers.AbstractLogger
org.slf4j.helpers.LegacyAbstractLogger
org.apache.maven.slf4j.MavenBaseLogger
org.apache.maven.slf4j.MavenSimpleLogger
org.apache.maven.slf4j.MavenFailOnSeverityLogger
- All Implemented Interfaces:
Serializable,org.slf4j.Logger
A proxy which enhances the MavenSimpleLogger with functionality to track whether a logging threshold is hit.
Currently only support WARN and ERROR states, since it's been used for the --fail-on-severity flag.
- See Also:
-
Field Summary
Fields inherited from class org.apache.maven.slf4j.MavenSimpleLogger
DEFAULT_LOG_LEVEL_KEYFields inherited from class org.apache.maven.slf4j.MavenBaseLogger
currentLogLevel, LEGACY_PREFIX, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_OFF, LOG_LEVEL_TRACE, LOG_LEVEL_WARNFields inherited from class org.slf4j.helpers.AbstractLogger
nameFields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidA simple implementation which always logs messages of level ERROR according to the format outlined above.voidPerform single parameter substitution before logging the message of level ERROR according to the format outlined above.voidPerform double parameter substitution before logging the message of level ERROR according to the format outlined above.voidPerform double parameter substitution before logging the message of level ERROR according to the format outlined above.voidLog a message of level ERROR, including an exception.voidA simple implementation which always logs messages of level WARN according to the format outlined above.voidPerform single parameter substitution before logging the message of level WARN according to the format outlined above.voidPerform double parameter substitution before logging the message of level WARN according to the format outlined above.voidPerform double parameter substitution before logging the message of level WARN according to the format outlined above.voidLog a message of level WARN, including an exception.Methods inherited from class org.apache.maven.slf4j.MavenSimpleLogger
configure, getLocation, printStackTrace, renderLevel, setLogLevel, setLogSink, write, writeThrowable, writeThrowable, writeThrowableMethods inherited from class org.apache.maven.slf4j.MavenBaseLogger
computeShortName, getFullyQualifiedCallerName, handleNormalizedLoggingCall, isDebugEnabled, isErrorEnabled, isInfoEnabled, isLevelEnabled, isTraceEnabled, isWarnEnabled, logMethods inherited from class org.slf4j.helpers.LegacyAbstractLogger
isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabledMethods inherited from class org.slf4j.helpers.AbstractLogger
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, readResolve, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
-
Method Details
-
warn
A simple implementation which always logs messages of level WARN according to the format outlined above.- Specified by:
warnin interfaceorg.slf4j.Logger- Overrides:
warnin classorg.slf4j.helpers.AbstractLogger
-
warn
-
warn
-
warn
-
warn
-
error
A simple implementation which always logs messages of level ERROR according to the format outlined above.- Specified by:
errorin interfaceorg.slf4j.Logger- Overrides:
errorin classorg.slf4j.helpers.AbstractLogger
-
error
-
error
-
error
-
error
-