类 HttpLogging

java.lang.Object
cn.taketoday.http.HttpLogging

public abstract class HttpLogging extends Object
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
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private static final cn.taketoday.logging.Logger
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    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.
    static cn.taketoday.logging.Logger
    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 "cn.taketoday.web.HttpLogging", if the primary is not enabled.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • fallbackLogger

      private static final cn.taketoday.logging.Logger fallbackLogger
  • 构造器详细资料

    • HttpLogging

      public HttpLogging()
  • 方法详细资料

    • forLogName

      public static cn.taketoday.logging.Logger 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 "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