v0.7.1 (build 925)

Lightweight logging to the engine console.

Import #

import * as Log from 'Helix/Log';

Functions #

debug
Logs a debug-level message.
debug(message: string): Promise<void>
info
Logs an info-level message.
info(message: string): Promise<void>
warn
Logs a warning-level message.
warn(message: string): Promise<void>
error
Logs an error-level message.
error(message: string): Promise<void>

Examples #

Emit messages at each severity level. Use debug for development diagnostics, info for routine status, warn for recoverable issues, and error for failures that need attention.

import * as Log from 'Helix/Log';

await Log.debug('debug message');
await Log.info('hello');
await Log.warn('careful');
await Log.error('oops');