c

wvlet.airframe.http

HttpLoggerConfig

case class HttpLoggerConfig(logFileName: String = "log/http_access.json", excludeHeaders: Set[String] = HttpLogger.defaultExcludeHeaders, extraTags: Map[String, Any] = Map.empty, logFilter: (Map[String, Any]) ⇒ Map[String, Any] = identity, logFormatter: (Map[String, Any]) ⇒ String = HttpLogger.jsonFormatter, maxNumFiles: Int = 100, maxFileSize: Long = 100 * 1024 * 1024) extends Product with Serializable

Http logger configuration

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpLoggerConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpLoggerConfig(logFileName: String = "log/http_access.json", excludeHeaders: Set[String] = HttpLogger.defaultExcludeHeaders, extraTags: Map[String, Any] = Map.empty, logFilter: (Map[String, Any]) ⇒ Map[String, Any] = identity, logFormatter: (Map[String, Any]) ⇒ String = HttpLogger.jsonFormatter, maxNumFiles: Int = 100, maxFileSize: Long = 100 * 1024 * 1024)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addExcludeHeaders(excludeHeaders: Set[String]): HttpLoggerConfig

    Add request/response headers to exclude from logging.

    Add request/response headers to exclude from logging. Case-insensitive match will be used.

  5. def addExtraTags(tags: Map[String, Any]): HttpLoggerConfig

    Add extra tags to the log entries

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def consoleLogger: HttpLogger

    A log writer that writes logs to the console with debug-level logs

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. val excludeHeaders: Set[String]
  11. val extraTags: Map[String, Any]
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def inMemoryLogger: HttpLogger

    A log writer that writes logs to an in-memory buffer.

    A log writer that writes logs to an in-memory buffer. Use this only for testing purpose.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def logFileExtension: String
  16. val logFileName: String
  17. val logFilter: (Map[String, Any]) ⇒ Map[String, Any]
  18. val logFormatter: (Map[String, Any]) ⇒ String
  19. val maxFileSize: Long
  20. val maxNumFiles: Int
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def withLogFileName(fileName: String): HttpLoggerConfig
  29. def withLogFilter(newLogFilter: (Map[String, Any]) ⇒ Map[String, Any]): HttpLoggerConfig

    Set a log filter for customizing log contents

  30. def withLogFormatter(formatter: (Map[String, Any]) ⇒ String): HttpLoggerConfig
  31. def withMaxFileSize(maxFileSize: Long): HttpLoggerConfig
  32. def withMaxNumFiles(maxNumFiles: Int): HttpLoggerConfig

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped