Gareth Jones
05e03a6317
merged from master, some things broken
2016-10-14 08:18:09 +11:00
Blake Ambrose
8e0a0f9f53
Added ability to add custom log levels to client, simillar to log4j for java
2016-06-08 11:51:36 +10:00
Nathan Woltman
c99783031f
Improve logging performance
...
Allow V8 to optimize the logging functions by not leaking the arguments object
and reduce the number of object accesses in the toLevel function.
This results in a performance improvement of about 11%.
2016-02-07 19:53:05 -05:00
Luis Malheiro
1e999f36d7
Fix and test for MARK level.
2014-09-08 12:17:50 +02:00
Luis Malheiro
6fa998408a
Adds subcategories to the appenders and loggers. Adds property "level" at the file appender to limit the levels that a file appender accepts.
...
Creates a MARK category that always write to the log. That's useful to write things like '---- STARTED ----'.
2014-08-29 16:33:32 +02:00
Gareth Jones
a8679aced1
simplified levels a bit, converted tests to mocha
2013-08-21 08:02:37 +10:00
Gareth Jones
516320c79a
more linting
2013-05-30 08:26:03 +10:00
Gareth Jones
a046523804
Moved Logger into separate file, added support for loading appenders outside log4js, removed 'name' from appender requirements
2012-06-01 11:11:07 +10:00
Gareth Jones
61078e88ef
fixed the nolog tests
2012-05-09 16:40:27 +10:00
Mike Bardzinski
2c7b56853b
Changed toLevel to accept a Log4js.Level (or in fact any object), and try to convert it to a Log4js.Level. Fixes the setLevel asymmetry, where you cannot setLevel(log4js.level.foo)
2012-05-02 15:41:32 +01:00
Gareth Jones
e78f4e33ce
Fixed issue #51 , added tests to cover levels
2012-02-22 14:14:46 +11:00
Gareth Jones
d7ffa59434
moved level colours into layouts where they belong, updated README
2011-07-13 18:29:53 +10:00
Gareth Jones
f89d54b66e
removed main function, now using felixge's sandboxed-module, split code into multiple files
2011-07-12 13:03:17 +10:00