Enum Class HttpLogger

java.lang.Object
java.lang.Enum<HttpLogger>
net.dreamlu.mica.http.HttpLogger
All Implemented Interfaces:
Serializable, Comparable<HttpLogger>, Constable, HttpLoggingInterceptor.Logger

public enum HttpLogger extends Enum<HttpLogger> implements HttpLoggingInterceptor.Logger
OkHttp logger, Slf4j and console log.
Author:
L.cm
  • Enum Constant Details

    • Slf4j

      public static final HttpLogger Slf4j
      http 日志:Slf4j
    • Console

      public static final HttpLogger Console
      http 日志:Console
  • Method Details

    • values

      public static HttpLogger[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpLogger valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null