Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

expressCapture

expressCapture: ExpressCaptureClass = new ExpressCaptureClass()

statusCodeList

statusCodeList: string[] = Object.keys(statusCodeMap).map(key => statusCodeMap[key])

Functions

capture

  • capture(channel?: ChannelInterface, status?: string | Array<string>): (Anonymous function)
  • Parameters

    • Default value channel: ChannelInterface = channels.DEFAULT
    • Default value status: string | Array<string> = statusCodeList

      the list of status that will trigger logging, useful if you want to log "failed requests" (status of 500) only for example

    Returns (Anonymous function)

lookupByChannel

Object literals

channels

channels: object

CONSOLE

CONSOLE: object

name

name: string = "console"

DEFAULT

DEFAULT: object

name

name: string = "console"

statusCodeMap

statusCodeMap: object

ERROR400

ERROR400: string = "400"

ERROR500

ERROR500: string = "500"

OK200

OK200: string = "200"

OK300

OK300: string = "300"

OTHER

OTHER: string = "OTHER"

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc