public abstract class HttpLogging extends Object
That means "org.springframework.web" enables all web logging including
from lower level packages such as "org.springframework.http" and modules
such as codecs from "spring-core" when those are wrapped with
EncoderHttpMessageWriter
or
DecoderHttpMessageReader
.
To see logging from the primary class loggers simply enable logging for "org.springframework.http" and "org.springframework.codec".
LogDelegateFactory
Constructor and Description |
---|
HttpLogging() |
Modifier and Type | Method and Description |
---|---|
static Log |
forLog(Log primaryLogger)
Wrap the given primary logger with a composite logger that delegates to
it or to the fallback logger "org.springframework.web.HttpLogging",
if the primary is not enabled.
|
static Log |
forLogName(Class<?> primaryLoggerClass)
Create a primary logger for the given class and wrap it with a composite
that delegates to it or to the fallback logger
"org.springframework.web.HttpLogging", if the primary is not enabled.
|
public static Log forLogName(Class<?> primaryLoggerClass)
primaryLoggerClass
- the class for the name of the primary loggerpublic static Log forLog(Log primaryLogger)
primaryLogger
- the primary logger to use