Package org.apache.maven.slf4j
Class MavenLoggerFactory
java.lang.Object
org.apache.maven.slf4j.MavenLoggerFactory
- All Implemented Interfaces:
LogLevelRecorder
,org.slf4j.ILoggerFactory
public class MavenLoggerFactory
extends Object
implements LogLevelRecorder, org.slf4j.ILoggerFactory
LogFactory for Maven which can create a simple logger or one which, if set, fails the build on a severity threshold.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.logging.api.LogLevelRecorder
LogLevelRecorder.Level
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.Logger
Return an appropriateLogger
instance by name.protected org.slf4j.Logger
getNewLoggingInstance
(String name) boolean
void
void
reset()
void
-
Constructor Details
-
MavenLoggerFactory
public MavenLoggerFactory()
-
-
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
-
getLogger
Return an appropriateLogger
instance by name.- Specified by:
getLogger
in interfaceorg.slf4j.ILoggerFactory
-
reset
public void reset()- Specified by:
reset
in interfaceLogLevelRecorder
-
getNewLoggingInstance
-
reconfigure
public void reconfigure()
-