Skip to main content

Class: ConsoleLogStream

Defined in: logging/console-stream.ts:13

A LogStream implementation that writes log entries to the console. Different severity levels are mapped to different console methods.

Implements

Constructors

Constructor

new ConsoleLogStream(severity?): ConsoleLogStream

Defined in: logging/console-stream.ts:22

Creates a new ConsoleLogStream

Parameters

ParameterTypeDefault valueDescription
severitynumber | Severity'DEFAULT'The minimum severity level to log. Can be provided as a Severity string or numeric code. Defaults to 'DEFAULT'.

Returns

ConsoleLogStream

Properties

PropertyTypeDescriptionDefined in
severitySeverityThe minimum severity level to loglogging/console-stream.ts:15

Methods

appendEntry()

appendEntry(e): void

Defined in: logging/console-stream.ts:32

Appends a log entry to the console

Parameters

ParameterTypeDescription
eNormalizedLogEntry<LogEntry>The normalized log entry to append

Returns

void

Implementation of

LogStream.appendEntry