Fix and test for MARK level.

This commit is contained in:
Luis Malheiro
2014-09-08 12:17:50 +02:00
parent 17c9b29ca5
commit 1e999f36d7
2 changed files with 73 additions and 15 deletions

View File

@@ -63,7 +63,7 @@ module.exports = {
WARN: new Level(30000, "WARN"),
ERROR: new Level(40000, "ERROR"),
FATAL: new Level(50000, "FATAL"),
MARK: new Level(Number.MAX_VALUE-1, "MARK"),
MARK: new Level(9007199254740992, "MARK"), // 2^53
OFF: new Level(Number.MAX_VALUE, "OFF"),
toLevel: toLevel
};