How to use the wtfnode.setLogger function in wtfnode

To help you get started, we’ve selected a few wtfnode examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / wtfnode / wtfnode-tests.ts View on Github external
/// 

import * as wtf from 'wtfnode';

wtf.init();
wtf.setLogger('info', (message?: any, ...optionalParams: any[]) => console.info(message, ...optionalParams));
wtf.setLogger('warn', (message?: any, ...optionalParams: any[]) => console.warn(message, ...optionalParams));
wtf.setLogger('error', (message?: any, ...optionalParams: any[]) => console.error(message, ...optionalParams));
wtf.dump();
wtf.resetLoggers();
github DefinitelyTyped / DefinitelyTyped / types / wtfnode / wtfnode-tests.ts View on Github external
/// 

import * as wtf from 'wtfnode';

wtf.init();
wtf.setLogger('info', (message?: any, ...optionalParams: any[]) => console.info(message, ...optionalParams));
wtf.setLogger('warn', (message?: any, ...optionalParams: any[]) => console.warn(message, ...optionalParams));
wtf.setLogger('error', (message?: any, ...optionalParams: any[]) => console.error(message, ...optionalParams));
wtf.dump();
wtf.resetLoggers();
github DefinitelyTyped / DefinitelyTyped / types / wtfnode / wtfnode-tests.ts View on Github external
/// 

import * as wtf from 'wtfnode';

wtf.init();
wtf.setLogger('info', (message?: any, ...optionalParams: any[]) => console.info(message, ...optionalParams));
wtf.setLogger('warn', (message?: any, ...optionalParams: any[]) => console.warn(message, ...optionalParams));
wtf.setLogger('error', (message?: any, ...optionalParams: any[]) => console.error(message, ...optionalParams));
wtf.dump();
wtf.resetLoggers();

wtfnode

Utility to help find out why Node isn't exiting

ISC
Latest version published 4 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages