mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-19 16:55:02 +02:00
23 lines
781 B
TypeScript
23 lines
781 B
TypeScript
/** Minimal logger contract — structurally compatible with @n8n/backend-common Logger. */
|
|
export interface Logger {
|
|
info(message: string, metadata?: Record<string, unknown>): void;
|
|
warn(message: string, metadata?: Record<string, unknown>): void;
|
|
error(message: string, metadata?: Record<string, unknown>): void;
|
|
debug(message: string, metadata?: Record<string, unknown>): void;
|
|
}
|
|
|
|
/**
|
|
* Minimal error-reporter contract — structurally compatible with the n8n-core
|
|
* `ErrorReporter`. Wired to Sentry by the cli layer; defaults to a no-op when
|
|
* the package is used standalone (e.g. in CI scripts and tests).
|
|
*/
|
|
export interface ErrorReporter {
|
|
error(
|
|
error: unknown,
|
|
options?: {
|
|
tags?: Record<string, string>;
|
|
extra?: Record<string, unknown>;
|
|
},
|
|
): void;
|
|
}
|