### Hierarchy

- LoglessContext

## Index

### Constructors

- constructor

### Methods

- callback
- captureConsole
- cleanup
- flush
- log
- logError
- newTransactionID
- onCloudFunctionEvent
- onLambdaEvent
- transactionID
- transmit
- wrapConsole

## Constructors

### constructor

- new LoglessContext(_source: string): LoglessContext

- - Defined in logless/logless-context.ts:11

  #### Parameters

  - ##### _source: string

  #### Returns LoglessContext

## Methods

### callback

- callback(): Function

- - Defined in logless/logless-context.ts:160

  #### Returns Function

### captureConsole

- captureConsole(routine: Function): any

- - Defined in logless/logless-context.ts:76

  #### 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

- - Defined in logless/logless-context.ts:219

  #### Returns void

### flush

- flush(flushed?: function): void

- - Defined in logless/logless-context.ts:223

  #### Parameters

  - ##### Optional flushed: function

    - - (): void

      - #### Returns void

### log

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

- - Defined in logless/logless-context.ts:164

  #### Parameters

  - ##### type: LogType

  - ##### data: any

  - ##### Optional params: Array<any>

  - ##### Optional tags: Array<string>

  #### Returns void

### logError

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

- - Defined in logless/logless-context.ts:191

  #### Parameters

  - ##### type: LogType

  - ##### error: any

  - ##### Optional tags: Array<string>

  #### Returns void

### newTransactionID

- newTransactionID(): void

- - Defined in logless/logless-context.ts:215

  #### Returns void

### onCloudFunctionEvent

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

- - Defined in logless/logless-context.ts:138

  #### Parameters

  - ##### request: any

  - ##### response: any

  #### Returns void

### onLambdaEvent

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

- - Defined in logless/logless-context.ts:111

  #### Parameters

  - ##### event: any

  - ##### context: any

  - ##### wrappedCallback: Function

  #### Returns void

### transactionID

- transactionID(): string

- - Defined in logless/logless-context.ts:211

  #### Returns string

### transmit

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

- - Defined in logless/logless-context.ts:259

  #### Parameters

  - ##### logBatch: any

  - ##### Optional flushed: function

    - - (): void

      - #### Returns void

### wrapConsole

- wrapConsole(): void

- - Defined in logless/logless-context.ts:62

  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