Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoggerHandler

A handler which logs request information to the Vert.x logger. You should mount this handler before any handler that could fail the routing context

Hierarchy

  • LoggerHandler

Implements

Index

Properties

Static Readonly DEFAULT_FORMAT

DEFAULT_FORMAT: LoggerFormat

Methods

customFormatter

  • Set the custom formatter to be used by the handler.

    Parameters

    • formatter: (arg: HttpServerRequest) => string
        • (arg: HttpServerRequest): string
        • Parameters

          • arg: HttpServerRequest

          Returns string

    Returns LoggerHandler

  • Set the custom formatter to be used by the handler.

    Parameters

    Returns LoggerHandler

handle

Static create

  • Create a handler with default format

    Returns LoggerHandler

  • Create a handler with he specified format

    Parameters

    Returns LoggerHandler

  • Create a handler with he specified format

    Parameters

    Returns LoggerHandler

Generated using TypeDoc