Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MessageFormatter

Index

Constructors

constructor

Properties

Private template

template: string

Static Readonly clf

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

Static Readonly debug

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

Static Readonly short

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

Methods

formatRequest

  • formatRequest(options: any, error?: Error): string

formatResponse

  • formatResponse(response: any, body: any, error?: Error): string

Static Private headers

  • headers(headers: any): string

Static maskSensitiveData

  • maskSensitiveData(msg: any, meta: any): { meta: any; msg: any }

Legend

  • Class
  • Constructor
  • Method
  • Static property
  • Static method
  • Variable
  • Interface
  • Private property

Generated using TypeDoc