Package org.apache.maven.cli.logging
Class Slf4jLogger
java.lang.Object
org.apache.maven.cli.logging.Slf4jLogger
- All Implemented Interfaces:
org.codehaus.plexus.logging.Logger
Adapt an SLF4J logger to a Plexus logger, ignoring Plexus logger API parts that are not classical and
probably not really used.
- Since:
- 3.1.0
-
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
void
void
void
void
fatalError
(String message) void
fatalError
(String message, Throwable throwable) org.codehaus.plexus.logging.Logger
getChildLogger
(String name) Warning: ignored (always returnnull
).getName()
int
Warning: ignored (always return0 == Logger.LEVEL_DEBUG
).void
void
boolean
boolean
boolean
boolean
boolean
void
setThreshold
(int threshold) Warning: ignored.void
void
-
Constructor Details
-
Slf4jLogger
public Slf4jLogger(org.slf4j.Logger logger)
-
-
Method Details
-
debug
- Specified by:
debug
in interfaceorg.codehaus.plexus.logging.Logger
-
debug
- Specified by:
debug
in interfaceorg.codehaus.plexus.logging.Logger
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceorg.codehaus.plexus.logging.Logger
-
info
- Specified by:
info
in interfaceorg.codehaus.plexus.logging.Logger
-
info
- Specified by:
info
in interfaceorg.codehaus.plexus.logging.Logger
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceorg.codehaus.plexus.logging.Logger
-
warn
- Specified by:
warn
in interfaceorg.codehaus.plexus.logging.Logger
-
warn
- Specified by:
warn
in interfaceorg.codehaus.plexus.logging.Logger
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceorg.codehaus.plexus.logging.Logger
-
error
- Specified by:
error
in interfaceorg.codehaus.plexus.logging.Logger
-
error
- Specified by:
error
in interfaceorg.codehaus.plexus.logging.Logger
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceorg.codehaus.plexus.logging.Logger
-
fatalError
- Specified by:
fatalError
in interfaceorg.codehaus.plexus.logging.Logger
-
fatalError
- Specified by:
fatalError
in interfaceorg.codehaus.plexus.logging.Logger
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()- Specified by:
isFatalErrorEnabled
in interfaceorg.codehaus.plexus.logging.Logger
-
getThreshold
public int getThreshold()Warning: ignored (always return0 == Logger.LEVEL_DEBUG
).- Specified by:
getThreshold
in interfaceorg.codehaus.plexus.logging.Logger
-
setThreshold
public void setThreshold(int threshold) Warning: ignored.- Specified by:
setThreshold
in interfaceorg.codehaus.plexus.logging.Logger
-
getChildLogger
Warning: ignored (always returnnull
).- Specified by:
getChildLogger
in interfaceorg.codehaus.plexus.logging.Logger
-
getName
- Specified by:
getName
in interfaceorg.codehaus.plexus.logging.Logger
-