Skip to content

LogsInstrument

Extends

  • BaseInstrument

Constructors

new LogsInstrument(store, init)

new LogsInstrument(store, init): LogsInstrument

Parameters

store: Store

init: LogsInstrumentInit= {}

Returns

LogsInstrument

Overrides

BaseInstrument.constructor

Source

inspector/lib/instruments/logs.ts:27

Properties

active

active: boolean = false

Inherited from

BaseInstrument.active

Source

inspector/lib/instruments/base.ts:6


disabled

disabled: boolean = false

Inherited from

BaseInstrument.disabled

Source

inspector/lib/instruments/base.ts:8


name

name: InspectorInstruments

Inherited from

BaseInstrument.name

Source

inspector/lib/instruments/base.ts:11


store

store: Store

Inherited from

BaseInstrument.store

Source

inspector/lib/instruments/base.ts:12


CONSOLE_LEVELS

static CONSOLE_LEVELS: Object

Type declaration

assert

assert: string = 'warn'

count

count: string = 'info'

debug

debug: string = 'debug'

dir

dir: string = 'info'

error

error: string = 'error'

info

info: string = 'info'

log

log: string = 'info'

trace

trace: string = 'error'

warn

warn: string = 'warn'

Source

inspector/lib/instruments/logs.ts:11

Methods

activate()

activate(): boolean

Returns

boolean

Overrides

BaseInstrument.activate

Source

inspector/lib/instruments/logs.ts:46


deactivate()

deactivate(): boolean

Returns

boolean

Overrides

BaseInstrument.deactivate

Source

inspector/lib/instruments/logs.ts:56


getEntryLabel()

getEntryLabel(_value): string

Parameters

\_value: any

Returns

string

Inherited from

BaseInstrument.getEntryLabel

Source

inspector/lib/instruments/base.ts:22


getEntryTime()

getEntryTime(_value): number

Parameters

\_value: any

Returns

number

Inherited from

BaseInstrument.getEntryTime

Source

inspector/lib/instruments/base.ts:26


interceptConsole()

interceptConsole(): void

Returns

void

Source

inspector/lib/instruments/logs.ts:66


interceptStdout()

interceptStdout(): void

Returns

void

Source

inspector/lib/instruments/logs.ts:83


push()

push(value, label, time): Promise<void>

Parameters

value: any

label: string= undefined

time: number= undefined

Returns

Promise<void>

Inherited from

BaseInstrument.push

Source

inspector/lib/instruments/base.ts:46


putToStore()

putToStore(time, label, value): Promise<void>

Parameters

time: number

label: string

value: string

Returns

Promise<void>

Overrides

BaseInstrument.putToStore

Source

inspector/lib/instruments/logs.ts:33


query()

query(query): Promise<StoreQueryResult>

Parameters

query: Query

Returns

Promise<StoreQueryResult>

Inherited from

BaseInstrument.query

Source

inspector/lib/instruments/base.ts:58


queryFromStore()

queryFromStore(query): Promise<StoreQueryResult>

Parameters

query: Query

Returns

Promise<StoreQueryResult>

Overrides

BaseInstrument.queryFromStore

Source

inspector/lib/instruments/logs.ts:37


restoreConsole()

restoreConsole(): void

Returns

void

Source

inspector/lib/instruments/logs.ts:93


restoreStdout()

restoreStdout(): void

Returns

void

Source

inspector/lib/instruments/logs.ts:101


serializeValue()

serializeValue(value): any

Parameters

value: any

Returns

any

Inherited from

BaseInstrument.serializeValue

Source

inspector/lib/instruments/base.ts:30


stripAnsi()

stripAnsi(str): string

Parameters

str: string

Returns

string

Source

inspector/lib/instruments/logs.ts:105


subscribe()

subscribe(fn, _options?): () => void

Parameters

fn: (time, label, value) => void

\_options?: unknown

Returns

Function

Returns

void

Inherited from

BaseInstrument.subscribe

Source

inspector/lib/instruments/base.ts:75


Generated using TypeDoc and typedoc-plugin-markdown.