mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 05:59:42 -08:00
06fa6f1fb3
* 🔧 Adjust base ESLint config * 🔧 Adjust `lint` and `lintfix` in `nodes-base` * 🔧 Include `test` and `utils` in `nodes-base` * 📘 Convert JS tests to TS * 👕 Apply lintfixes
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);
|
|
};
|