cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Safe Haskell None
Language Haskell2010

Network.Wai.Middleware.Logging

Synopsis

Middleware

withApiLogger :: Tracer IO ApiLog -> ApiLoggerSettings -> Middleware Source #

Installs a request & response logger on a Wai application.

The logger logs requests' and responses' bodies along with a few other useful piece of information.

Settings

data ApiLoggerSettings Source #

API logger settings

obfuscateKeys :: ( Request -> [ Text ]) -> ApiLoggerSettings -> ApiLoggerSettings Source #

Define a set of top-level object keys that should be obfuscated for a given request in a JSON format.

data HandlerLog Source #

Tracer events related to the handling of a single request.

Instances

Instances details
Show HandlerLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

Generic HandlerLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

ToJSON HandlerLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

ToText HandlerLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

HasPrivacyAnnotation HandlerLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

Methods

getPrivacyAnnotation :: HandlerLog -> PrivacyAnnotation

HasSeverityAnnotation HandlerLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

type Rep HandlerLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

data ApiLog Source #

API handler trace events are associated with a unique request ID.

Constructors

ApiLog

Fields

Instances

Instances details
Show ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

Generic ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

ToJSON ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

FromJSON ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

ToText ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

HasPrivacyAnnotation ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

Methods

getPrivacyAnnotation :: ApiLog -> PrivacyAnnotation

HasSeverityAnnotation ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

Methods

getSeverityAnnotation :: ApiLog -> Severity

ToObject ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging

type Rep ApiLog Source #
Instance details

Defined in Network.Wai.Middleware.Logging