c

wvlet.airframe.http

HttpLoggerConfig

case class HttpLoggerConfig(logFileName: String = "log/http_server.json", excludeHeaders: Set[String] = HttpLogger.defaultExcludeHeaders, extraEntries: () ⇒ 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_server.json", excludeHeaders: Set[String] = HttpLogger.defaultExcludeHeaders, extraEntries: () ⇒ 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  7. def consoleLogger: HttpLogger

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

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. val excludeHeaders: Set[String]
  10. val extraEntries: () ⇒ Map[String, Any]
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. 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.

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

    Add extra tags generated from the given function to the log entries

  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