@appsemble/node-utils
Version:
NodeJS utilities used by Appsemble internally.
31 lines (30 loc) • 762 B
TypeScript
import winston from 'winston';
interface ConfigureLoggerParams {
/**
* The negative verbosity count.
*/
quiet?: number;
/**
* The verbosity count.
*/
verbose?: number;
}
/**
* The default logger for NodeJS Appsemble projects.
*/
export declare const logger: winston.Logger;
/**
* Set the logging level using a string or numeric value.
*
* @param level The logger level to set.
*/
export declare function setLogLevel(level?: number | string): void;
/**
* Configure logging using named quiet and verbose parameters.
*
* Use this in conjunction with `yargs`.
*
* @param argv The processed command line arguments.
*/
export declare function configureLogger({ quiet, verbose }: ConfigureLoggerParams): void;
export {};