HttpLoggerConfig

wvlet.airframe.http.HttpLoggerConfig
case class HttpLoggerConfig(logFileName: String, excludeHeaders: Set[String], extraTags: Map[String, Any], logFilter: Map[String, Any] => Map[String, Any], logFormatter: Map[String, Any] => String, maxNumFiles: Int, maxFileSize: Long)

Http logger configuration

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addExcludeHeaders(excludeHeaders: Set[String]): HttpLoggerConfig

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

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

Attributes

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

Add extra tags to the log entries

Add extra tags to the log entries

Attributes

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

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

Attributes

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

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

Attributes

def logFileExtension: String
def withLogFileName(fileName: String): HttpLoggerConfig
def withLogFilter(newLogFilter: Map[String, Any] => Map[String, Any]): HttpLoggerConfig

Set a log filter for customizing log contents

Set a log filter for customizing log contents

Attributes

def withLogFormatter(formatter: Map[String, Any] => String): HttpLoggerConfig
def withMaxFileSize(maxFileSize: Long): HttpLoggerConfig
def withMaxNumFiles(maxNumFiles: Int): HttpLoggerConfig

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product