Sha256: c6886935196a26d608f27f9441fa370b7d9d7f09b225401fb1dde8a5853a08cc
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
/* Enum: Level Levels of messages. ALL - Used to mark <Logger> of <Appender> as ones allowing all messages. DEBUG - Minimal priority for message. This one is used for least valuable, and massive messages. INFO - Used to trace the system status. These messages are less aggressive then <Level.DEBUG>. WARN - Something could be better at this time. ERROR - Same as <Level.WARN>, but brakes some part of the system. Has to be fixed. FATAL - Same as <Level.WARN>, but brakes all the system. If not fixed - nothing will work at all. NONE - Used to mark <Logger> of <Appender> as ones blocking all the messages. */ JLog.Level = (function() { function Level(priority, name) { this.priority = priority; this.name = name; } Level.prototype = { isGreaterOrEqual: function(otherLevel) { return this.priority >= otherLevel.priority; } }; Level.ALL = new Level(0, "ALL"); Level.DEBUG = new Level(1, "DEBUG"); Level.INFO = new Level(2, "INFO"); Level.WARN = new Level(3, "WARN"); Level.ERROR = new Level(4, "ERROR"); Level.FATAL = new Level(5, "FATAL"); Level.NONE = new Level(6, "NONE"); return Level; })();
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jlog-rails-0.2.3 | src/levels.js |
jlog-rails-0.2.2 | vendor/assets/javascripts/levels.js |
jlog-rails-0.2.1 | vendor/assets/javascripts/levels.js |