Class JettyLogger
java.lang.Object
org.apache.juneau.microservice.jetty.JettyLogger
- All Implemented Interfaces:
org.slf4j.Logger,org.slf4j.spi.LocationAwareLogger
Implementation of Jetty
Logger based on Logger.
Allows Jetty to log to the Java Util logging framework (and thus to the main log file defined in the
Can be used by setting the following system property in the microservice config file.
See Also:
-
Field Summary
Fields inherited from interface org.slf4j.spi.LocationAwareLogger
DEBUG_INT, ERROR_INT, INFO_INT, TRACE_INT, WARN_INTFields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidLogs a debug message with a long argument.voidvoidvoidvoidvoidLogs a debug message with only a throwable.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidCreates a child logger with the specified name.getName()voidLogs an ignored exception at the FINEST level.voidvoidvoidvoidvoidvoidLogs an info message with only a throwable.voidvoidvoidvoidvoidbooleanbooleanisDebugEnabled(org.slf4j.Marker marker) booleanbooleanisErrorEnabled(org.slf4j.Marker marker) booleanbooleanisInfoEnabled(org.slf4j.Marker marker) booleanbooleanisTraceEnabled(org.slf4j.Marker marker) booleanbooleanisWarnEnabled(org.slf4j.Marker marker) voidlog(org.slf4j.Marker marker, String fqcn, int level, String message, Object[] argArray, Throwable t) voidsetDebugEnabled(boolean enabled) Enables or disables debug logging.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidLogs a warning message with only a throwable.voidvoidvoidvoidvoidMethods 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
-
Constructor Details
-
JettyLogger
public JettyLogger()Default constructor.Returns the logger with name
"org.eclipse.jetty.util.log.javautil" . -
JettyLogger
Normal constructor.- Parameters:
name- The logger name.
-
-
Method Details
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
Logs a debug message with a long argument.- Parameters:
msg- The message template with "{}" placeholder.arg- The long argument to substitute into the message.
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
Logs a debug message with only a throwable.- Parameters:
thrown- The throwable to log.
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
getLogger
Creates a child logger with the specified name.- Parameters:
name- The logger name.- Returns:
- A new JettyLogger instance for the specified name.
-
getName
- Specified by:
getNamein interfaceorg.slf4j.Logger
-
ignore
Logs an ignored exception at the FINEST level.- Parameters:
ignored- The exception to log as ignored.
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
Logs an info message with only a throwable.- Parameters:
thrown- The throwable to log.
-
isDebugEnabled
- Specified by:
isDebugEnabledin interfaceorg.slf4j.Logger
-
isDebugEnabled
- Specified by:
isDebugEnabledin interfaceorg.slf4j.Logger
-
isErrorEnabled
- Specified by:
isErrorEnabledin interfaceorg.slf4j.Logger
-
isErrorEnabled
- Specified by:
isErrorEnabledin interfaceorg.slf4j.Logger
-
isInfoEnabled
- Specified by:
isInfoEnabledin interfaceorg.slf4j.Logger
-
isInfoEnabled
- Specified by:
isInfoEnabledin interfaceorg.slf4j.Logger
-
isTraceEnabled
- Specified by:
isTraceEnabledin interfaceorg.slf4j.Logger
-
isTraceEnabled
- Specified by:
isTraceEnabledin interfaceorg.slf4j.Logger
-
isWarnEnabled
- Specified by:
isWarnEnabledin interfaceorg.slf4j.Logger
-
isWarnEnabled
- Specified by:
isWarnEnabledin interfaceorg.slf4j.Logger
-
log
public void log(org.slf4j.Marker marker, String fqcn, int level, String message, Object[] argArray, Throwable t) - Specified by:
login interfaceorg.slf4j.spi.LocationAwareLogger
-
setDebugEnabled
Enables or disables debug logging.When enabled, sets the log level to FINE. When disabled, restores the previously configured log level.
- Parameters:
enabled-true to enable debug logging,false to disable.
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
Logs a warning message with only a throwable.- Parameters:
thrown- The throwable to log.
-