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
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpLoggerConfig
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- 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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
def
addExtraTags(tags: Map[String, Any]): HttpLoggerConfig
Add extra tags to the log entries
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
consoleLogger: HttpLogger
A log writer that writes logs to the console with debug-level logs
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val excludeHeaders: Set[String]
- val extraTags: Map[String, Any]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logFileExtension: String
- val logFileName: String
- val logFilter: (Map[String, Any]) ⇒ Map[String, Any]
- val logFormatter: (Map[String, Any]) ⇒ String
- val maxFileSize: Long
- val maxNumFiles: Int
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withLogFileName(fileName: String): HttpLoggerConfig
-
def
withLogFilter(newLogFilter: (Map[String, Any]) ⇒ Map[String, Any]): HttpLoggerConfig
Set a log filter for customizing log contents
- def withLogFormatter(formatter: (Map[String, Any]) ⇒ String): HttpLoggerConfig
- def withMaxFileSize(maxFileSize: Long): HttpLoggerConfig
- def withMaxNumFiles(maxNumFiles: Int): HttpLoggerConfig
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated