Skip to main content

Function: createLogger()

function createLogger(context, options): Logger;

Defined in: logger.ts:14

Creates a structured logger with context support.

Parameters​

context​

Record<string, unknown> = {}

options​

level?​

LogLevel

Returns​

Logger

Example​

const logger = createLogger({ package: '@uimatch/core', module: 'capture' });
logger.info({ fileId: 123 }, 'Processing file');
logger.warn({ error: err.message }, 'Failed to parse');