Axinom Mosaic Libraries
    Preparing search index...
    • This middleware will log Request/Response details. It can be controlled by setting a corresponding operation mode to the process.env.EXTENDED_REQUEST_LOGGING ENV var of the service.

      The following modes are supported:

      • OFF (or when a the ENV var is undefined, which is the default) = Disables the extended logging
      • ERRORS_ONLY = Enables the logging if the res.code >= 400 OR res.body fits a standard GQL error shape
      • ALL = Enables the logging of every request/response, be it successful or error.

      TODO: Introduce an operation mode for logging only at some intervals, for when we don't need to log every single req/res during high load.

      Parameters

      Returns RequestHandler