syntropylog
Version:
An instance manager with observability for Node.js applications
22 lines • 585 B
JavaScript
/**
* @file src/logger/levels.ts
* @description Defines the available log levels, their names, and their severity weights.
*/
/**
* @description A mapping of log level names to their severity weights.
* Higher numbers indicate higher severity.
*/
export const LOG_LEVEL_WEIGHTS = {
fatal: 60,
error: 50,
warn: 40,
info: 30,
debug: 20,
trace: 10,
silent: 0,
};
/**
* @description An array of the available log level names, derived from the weights object.
*/
export const logLevels = Object.keys(LOG_LEVEL_WEIGHTS);
//# sourceMappingURL=levels.js.map