Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MessageFormatter

Index

Constructors

constructor

Properties

Private template

template: string

Static clf

clf: string = `{hostname} {req_header_User-Agent} - [{date_common_log}] `+ `"{method} {target} HTTP/{version}" {code} {res_header_Content-Length}`

Static debug

debug: string = ">>>>>>>>" + os.EOL+ "{request}" + os.EOL + "<<<<<<<<" + os.EOL+ "{response}" + os.EOL + "--------" + os.EOL+ "{error}"

Static short

short: string = `[{ts}] "{method} {target} HTTP/{version}" {code}`

Methods

format

  • format(response: any, error?: Error): string

Static Private headers

  • headers(headers: any): string

Static maskSensitiveData

  • maskSensitiveData(msg: any, meta: any): object

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