@absolunet/ioc2.1.0

View on GitHub

log/enums/Level.js

//--------------------------------------------------------
//-- Node IoC - Log - Enums - Level
//--------------------------------------------------------

import Enum from '../../support/Enum';


/**
 * Log levels.
 *
 * @memberof log.enums
 * @augments support.Enum
 * @hideconstructor
 */
class Level extends Enum {

	/**
	 * Emergency level.
	 *
	 * @type {number}
	 */
	get EMERGENCY() { return 7; }

	/**
	 * Alert level.
	 *
	 * @type {number}
	 */
	get ALERT() { return 6; }

	/**
	 * Critical level.
	 *
	 * @type {number}
	 */
	get CRITICAL() { return 5; }

	/**
	 * Error level.
	 *
	 * @type {number}
	 */
	get ERROR() { return 4; }

	/**
	 * Warning level.
	 *
	 * @type {number}
	 */
	get WARNING() { return 3; }

	/**
	 * Notice level.
	 *
	 * @type {number}
	 */
	get NOTICE() { return 2; }

	/**
	 * Info level.
	 *
	 * @type {number}
	 */
	get INFO() { return 1; }

	/**
	 * Debug level.
	 *
	 * @type {number}
	 */
	get DEBUG() { return 0; }

}


export default Level;