moved level colours into layouts where they belong, updated README
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
function Level(level, levelStr, colour) {
|
||||
function Level(level, levelStr) {
|
||||
this.level = level;
|
||||
this.levelStr = levelStr;
|
||||
this.colour = colour;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -45,13 +44,13 @@ Level.prototype.isGreaterThanOrEqualTo = function(otherLevel) {
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
ALL: new Level(Number.MIN_VALUE, "ALL", "grey")
|
||||
, TRACE: new Level(5000, "TRACE", "blue")
|
||||
, DEBUG: new Level(10000, "DEBUG", "cyan")
|
||||
, INFO: new Level(20000, "INFO", "green")
|
||||
, WARN: new Level(30000, "WARN", "yellow")
|
||||
, ERROR: new Level(40000, "ERROR", "red")
|
||||
, FATAL: new Level(50000, "FATAL", "magenta")
|
||||
, OFF: new Level(Number.MAX_VALUE, "OFF", "grey")
|
||||
ALL: new Level(Number.MIN_VALUE, "ALL")
|
||||
, TRACE: new Level(5000, "TRACE")
|
||||
, DEBUG: new Level(10000, "DEBUG")
|
||||
, INFO: new Level(20000, "INFO")
|
||||
, WARN: new Level(30000, "WARN")
|
||||
, ERROR: new Level(40000, "ERROR")
|
||||
, FATAL: new Level(50000, "FATAL")
|
||||
, OFF: new Level(Number.MAX_VALUE, "OFF")
|
||||
, toLevel: toLevel
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user