类 HttpLogging
java.lang.Object
cn.taketoday.http.HttpLogging
Holds the shared logger named "cn.taketoday.http.HttpLogging" for HTTP
related logging when "cn.taketoday.http" is not enabled but
"cn.taketoday.web" is.
That means "cn.taketoday.web" enables all web logging including
from lower level packages such as "cn.taketoday.http" and modules
such as codecs from "today-core" when those are wrapped with
EncoderHttpMessageWriter or
DecoderHttpMessageReader.
To see logging from the primary class loggers simply enable logging for "cn.taketoday.http" and "cn.taketoday.codec".
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, TODAY 2021/11/5 22:30
- 另请参阅:
-
LogDelegateFactory
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static cn.taketoday.logging.LoggerforLog(cn.taketoday.logging.Logger primaryLogger) Wrap the given primary logger with a composite logger that delegates to it or to the fallback logger "cn.taketoday.web.HttpLogging", if the primary is not enabled.static cn.taketoday.logging.LoggerforLogName(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 "cn.taketoday.web.HttpLogging", if the primary is not enabled.
-
字段详细资料
-
fallbackLogger
private static final cn.taketoday.logging.Logger fallbackLogger
-
-
构造器详细资料
-
HttpLogging
public HttpLogging()
-
-
方法详细资料
-
forLogName
Create a primary logger for the given class and wrap it with a composite that delegates to it or to the fallback logger "cn.taketoday.web.HttpLogging", if the primary is not enabled.- 参数:
primaryLoggerClass- the class for the name of the primary logger- 返回:
- the resulting composite logger
-
forLog
public static cn.taketoday.logging.Logger forLog(cn.taketoday.logging.Logger primaryLogger) Wrap the given primary logger with a composite logger that delegates to it or to the fallback logger "cn.taketoday.web.HttpLogging", if the primary is not enabled.- 参数:
primaryLogger- the primary logger to use- 返回:
- the resulting composite logger
-