Package org.littleshoot.proxy.impl
Class ProxyConnectionLogger
java.lang.Object
org.littleshoot.proxy.impl.ProxyConnectionLogger
A helper class that logs messages for ProxyConnections. All it does is make sure that the Channel and current state are always included in the log messages (if available).
Note that this depends on us using a LocationAwareLogger so that we can report the line numbers of the caller rather than this helper class. If the SLF4J binding does not provide a LocationAwareLogger, then a fallback to Logger is provided.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classDispatcher for a LocationAwareLogger.private static interfaceprivate classFallback dispatch if a LocationAwareLogger is not available from the SLF4J LoggerFactory. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ProxyConnectionprivate final ProxyConnectionLogger.LogDispatchprivate final Stringprivate final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected voidprivate StringfullMessage(String message) protected voidprotected voidprotected voidprotected voidprotected voidprotected void
-
Field Details
-
connection
-
dispatch
-
logger
private final org.slf4j.Logger logger -
fqcn
-
-
Constructor Details
-
ProxyConnectionLogger
-
-
Method Details
-
error
-
error
-
warn
-
warn
-
info
-
info
-
debug
-
debug
-
log
-
log
-
fullMessage
-