Skip to main content

@webda/otelReadme | API


Class: OtelLogger

Extends

  • WorkerLogger

Constructors

new OtelLogger(logger, output)

new OtelLogger(logger, output): OtelLogger

Parameters

logger: Logger

output: WorkerOutput

Returns

OtelLogger

Overrides

WorkerLogger.constructor

Source

otel/src/otel.ts:17

Properties

level

level: WorkerLogLevel

Inherited from

WorkerLogger.level

Source

workout/lib/loggers/index.d.ts:6


listener

listener: (msg) => void

Parameters

msg: WorkerMessage

Returns

void

Inherited from

WorkerLogger.listener

Source

workout/lib/loggers/index.d.ts:7


logger

protected logger: Logger

Source

otel/src/otel.ts:18


output

output: WorkerOutput

Inherited from

WorkerLogger.output

Source

workout/lib/loggers/index.d.ts:8

Methods

close()

close(): void

Close the listener

Returns

void

Inherited from

WorkerLogger.close

Source

workout/lib/loggers/index.d.ts:18


onMessage()

onMessage(msg): void

Parameters

msg: WorkerMessage

Returns

void

Overrides

WorkerLogger.onMessage

Source

otel/src/otel.ts:24