Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoglessContext

Hierarchy

  • LoglessContext

Index

Constructors

constructor

Methods

callback

  • callback(): Function

captureConsole

  • captureConsole(routine: Function): any
  • Parameters

    • routine: Function

      For wrapped consoles, needs to start at the top of the callback tree, so it is passed in

    Returns any

cleanup

  • cleanup(): void

flush

  • flush(flushed?: function): void

log

  • log(type: LogType, data: any, params?: Array<any>, tags?: Array<string>): void

logError

  • logError(type: LogType, error: any, tags?: Array<string>): void

newTransactionID

  • newTransactionID(): void

onCloudFunctionEvent

  • onCloudFunctionEvent(request: any, response: any): void

onLambdaEvent

  • onLambdaEvent(event: any, context: any, wrappedCallback: Function): void

transactionID

  • transactionID(): string

transmit

  • transmit(logBatch: any, flushed?: function): void

wrapConsole

  • wrapConsole(): void
  • Uses continuation local storage module to do a ThreadLocal like deal on the console That way we can associate the logs with the particular transaction

    Returns void

Generated using TypeDoc