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
| Parameter | Type | Default value | Description |
|---|---|---|---|
severity | number | Severity | 'DEFAULT' | The minimum severity level to log. Can be provided as a Severity string or numeric code. Defaults to 'DEFAULT'. |
Returns
ConsoleLogStream
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
severity | Severity | The minimum severity level to log | logging/console-stream.ts:15 |
Methods
appendEntry()
appendEntry(
e):void
Defined in: logging/console-stream.ts:32
Appends a log entry to the console
Parameters
| Parameter | Type | Description |
|---|---|---|
e | NormalizedLogEntry<LogEntry> | The normalized log entry to append |
Returns
void