Class TomcatLogger
java.lang.Object
org.apache.juneau.microservice.tomcat.TomcatLogger
- All Implemented Interfaces:
org.apache.juli.logging.Log
Implementation of the embedded-Tomcat
Log façade based on Logger.
Allows Tomcat to log to the Java Util logging framework (and thus to the main log file defined in the
org.apache.juneau.marshall.microservice.jetty.JettyLogger in the Jetty module.
Tomcat log levels map to Level values as follows: FINEST,
FINE, INFO,
WARNING, and SEVERE.
See Also:
- Since:
- 10.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidgetName()Returns the name of the underlying Java Util logger.voidvoidbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidvoidvoid
-
Constructor Details
-
TomcatLogger
public TomcatLogger()Default constructor.Returns the logger with name
"org.apache.juneau.marshall.microservice.tomcat" . -
TomcatLogger
Normal constructor.- Parameters:
name- The logger name. Must not benull .
-
-
Method Details
-
getName
Returns the name of the underlying Java Util logger.- Returns:
- The logger name.
-
isTraceEnabled
- Specified by:
isTraceEnabledin interfaceorg.apache.juli.logging.Log
-
isDebugEnabled
- Specified by:
isDebugEnabledin interfaceorg.apache.juli.logging.Log
-
isInfoEnabled
- Specified by:
isInfoEnabledin interfaceorg.apache.juli.logging.Log
-
isWarnEnabled
- Specified by:
isWarnEnabledin interfaceorg.apache.juli.logging.Log
-
isErrorEnabled
- Specified by:
isErrorEnabledin interfaceorg.apache.juli.logging.Log
-
isFatalEnabled
- Specified by:
isFatalEnabledin interfaceorg.apache.juli.logging.Log
-
trace
- Specified by:
tracein interfaceorg.apache.juli.logging.Log
-
trace
- Specified by:
tracein interfaceorg.apache.juli.logging.Log
-
debug
- Specified by:
debugin interfaceorg.apache.juli.logging.Log
-
debug
- Specified by:
debugin interfaceorg.apache.juli.logging.Log
-
info
- Specified by:
infoin interfaceorg.apache.juli.logging.Log
-
info
- Specified by:
infoin interfaceorg.apache.juli.logging.Log
-
warn
- Specified by:
warnin interfaceorg.apache.juli.logging.Log
-
warn
- Specified by:
warnin interfaceorg.apache.juli.logging.Log
-
error
- Specified by:
errorin interfaceorg.apache.juli.logging.Log
-
error
- Specified by:
errorin interfaceorg.apache.juli.logging.Log
-
fatal
- Specified by:
fatalin interfaceorg.apache.juli.logging.Log
-
fatal
- Specified by:
fatalin interfaceorg.apache.juli.logging.Log
-