mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 23:54:07 -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);
|
|
};
|