Package org.springframework.http
Class HttpLogging
java.lang.Object
org.springframework.http.HttpLogging
Holds the shared logger named "org.springframework.web.HttpLogging" for HTTP
 related logging when "org.springframework.http" is not enabled but
 "org.springframework.web" is.
 
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".
- Since:
- 5.1
- Author:
- Rossen Stoyanchev
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic LogWrap 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 LogforLogName(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.
- 
Constructor Details- 
HttpLoggingpublic HttpLogging()
 
- 
- 
Method Details- 
forLogNameCreate 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.- Parameters:
- primaryLoggerClass- the class for the name of the primary logger
- Returns:
- the resulting composite logger
 
- 
forLogWrap 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.- Parameters:
- primaryLogger- the primary logger to use
- Returns:
- the resulting composite logger
 
 
-