Package org.slf4j.impl
Class MavenSimpleLogger
java.lang.Object
org.slf4j.helpers.MarkerIgnoringBase
org.slf4j.impl.SimpleLogger
org.slf4j.impl.MavenSimpleLogger
- All Implemented Interfaces:
Serializable
,org.slf4j.Logger
- Direct Known Subclasses:
MavenFailOnSeverityLogger
Logger for Maven, that support colorization of levels and stacktraces. This class implements 2 methods introduced in
slf4j-simple provider local copy.
- Since:
- 3.5.0
- See Also:
-
Field Summary
Fields inherited from class org.slf4j.impl.SimpleLogger
CACHE_OUTPUT_STREAM_STRING_KEY, currentLogLevel, DATE_TIME_FORMAT_KEY, DEFAULT_LOG_LEVEL_KEY, LEVEL_IN_BRACKETS_KEY, LOG_FILE_KEY, LOG_KEY_PREFIX, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_OFF, LOG_LEVEL_TRACE, LOG_LEVEL_WARN, SHOW_DATE_TIME_KEY, SHOW_LOG_NAME_KEY, SHOW_SHORT_LOG_NAME_KEY, SHOW_THREAD_ID_KEY, SHOW_THREAD_NAME_KEY, SYSTEM_PREFIX, WARN_LEVEL_STRING_KEY
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getName()
protected Object
protected String
renderLevel
(int level) protected void
writeThrowable
(Throwable t, PrintStream stream) Methods inherited from class org.slf4j.impl.SimpleLogger
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isLevelEnabled, isTraceEnabled, isWarnEnabled, log, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.slf4j.Logger
getName
-
Field Details
-
name
-
-
Method Details
-
renderLevel
- Overrides:
renderLevel
in classSimpleLogger
-
writeThrowable
- Overrides:
writeThrowable
in classSimpleLogger
-
getLocation
-
getName
- Specified by:
getName
in interfaceorg.slf4j.Logger
-
readResolve
- Throws:
ObjectStreamException
-