Package org.apache.maven.slf4j
Class DefaultLogLevelRecorder
java.lang.Object
org.apache.maven.slf4j.DefaultLogLevelRecorder
- All Implemented Interfaces:
LogLevelRecorder
Responsible for keeping state of whether the threshold of the --fail-on-severity flag has been hit.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.logging.api.LogLevelRecorder
LogLevelRecorder.Level
-
Constructor Summary
ConstructorDescriptionDefaultLogLevelRecorder
(String threshold) DefaultLogLevelRecorder
(LogLevelRecorder.Level maxAllowed) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
record
(org.slf4j.event.Level logLevel) void
-
Constructor Details
-
DefaultLogLevelRecorder
-
DefaultLogLevelRecorder
-
-
Method Details
-
hasReachedMaxLevel
public boolean hasReachedMaxLevel()- Specified by:
hasReachedMaxLevel
in interfaceLogLevelRecorder
-
getMaxLevelReached
- Specified by:
getMaxLevelReached
in interfaceLogLevelRecorder
-
getMaxLevelAllowed
- Specified by:
getMaxLevelAllowed
in interfaceLogLevelRecorder
-
setMaxLevelAllowed
- Specified by:
setMaxLevelAllowed
in interfaceLogLevelRecorder
-
record
public void record(org.slf4j.event.Level logLevel) -
metThreshold
public boolean metThreshold()
-