mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 21:49:41 -08:00
16 lines
300 B
TypeScript
16 lines
300 B
TypeScript
import type { ILogger } from 'n8n-workflow';
|
|
import { LoggerProxy } from 'n8n-workflow';
|
|
|
|
const fakeLogger = {
|
|
log: () => {},
|
|
debug: () => {},
|
|
verbose: () => {},
|
|
info: () => {},
|
|
warn: () => {},
|
|
error: () => {},
|
|
} as ILogger;
|
|
|
|
export const initLogger = () => {
|
|
LoggerProxy.init(fakeLogger);
|
|
};
|