@cumulus/common
Version:
Common utilities used across tasks
52 lines • 1.66 kB
TypeScript
/**
* Constructs JSON to log
*
* @param {string} additionalKeys - Any additional key value pairs the user chooses to log
* @param {string} args - Message to log and any other information
* @returns {undefined} - log is printed to stdout, nothing is returned
*/
export declare function logAdditionalKeys(additionalKeys: object, ...args: any[]): void;
/**
* Logs the message
*
* @param {string} args - Includes message and any other information to log
*/
export declare function info(...args: any[]): void;
/**
* Logs the error
*
* @param {Object} args - Includes error and any other information to log
*/
export declare function error(...args: any[]): void;
/**
* Logs the debugger messsages
*
* @param {Object} args - Includes debugger message and any other information to log
*/
export declare function debug(...args: any[]): void;
/**
* Logs the Warning messsage
*
* @param {Object} args - Includes Warn message and any other information to log
*/
export declare function warn(...args: any[]): void;
/**
* Logs the Fatal messsage
*
* @param {Object} args - Includes Fatal message and any other information to log
*/
export declare function fatal(...args: any[]): void;
/**
* Logs the Trace messsage
*
* @param {Object} args - Includes Trace message and any other information to log
*/
export declare function trace(...args: any[]): void;
/**
* convert log level from string to number or number to string
*
* @param {string/number} level - log level in string or number
* @returns {number/string} - level in number or string
*/
export declare function convertLogLevel(level: any): any;
//# sourceMappingURL=log.d.ts.map