Commit Graph
194 Commits
Author SHA1 Message Date
Gareth Jones d43d49d83d converted date file appender tests to mocha 2013-08-27 13:44:33 +10:00
Gareth Jones 3312724d7d migrated file appender tests to mocha 2013-08-26 22:49:12 +10:00
Gareth Jones 045b0dda2b renamed categoryName -> category 2013-08-26 22:48:50 +10:00
Gareth Jones be1a9ca411 migrated logLevelFilter tests to mocha, changed filter api slightly 2013-08-26 15:38:40 +10:00
Gareth Jones ac4fd2a7fc migrated tests to mocha 2013-08-25 12:04:49 +10:00
Gareth Jones 50074842ad replaced my debug lib with standard one 2013-08-25 11:55:26 +10:00
Gareth Jones eabcaf8aef moved cluster support into core, removed clustered appender, multiprocess appender 2013-08-24 20:46:10 +10:00
Gareth Jones d8cf8cb2dc removed category filter 2013-08-23 08:43:19 +10:00
Gareth Jones 5f68db41b4 merge from master 2013-08-22 15:51:08 +10:00
Gareth Jones 270ba0fcc6 added initial configuration 2013-08-22 08:44:36 +10:00
Gareth Jones bdb56e4256 moved smtp appender to log4js-smtp 2013-08-22 08:19:51 +10:00
Gareth Jones b12a39ac79 moved hookio appender to log4js-hookio 2013-08-22 08:14:44 +10:00
Gareth Jones c3d3a8c363 moved gelf appender to log4js-gelf 2013-08-22 08:11:48 +10:00
Gareth Jones 7bad76d8ec no longer needed 2013-08-22 08:03:22 +10:00
Gareth Jones a0a5a3aa99 moved connect-logger to log4js-connect 2013-08-22 08:01:57 +10:00
Gareth Jones a0d0373480 convert level string to Level 2013-08-21 08:05:28 +10:00
Gareth Jones eb875b6d98 mocha tests for new log4js 2013-08-21 08:04:26 +10:00
Gareth Jones a8679aced1 simplified levels a bit, converted tests to mocha 2013-08-21 08:02:37 +10:00
wood1986 7888381991 Update layouts.js 2013-08-18 01:43:48 +08:00
wood1986 6df4753822 Update layouts.js 2013-08-18 01:36:07 +08:00
wood1986 2d177d517b Update date_format.js 2013-08-13 23:04:52 +08:00
wood1986 21aebbde33 Update layouts.js 2013-08-13 23:04:11 +08:00
Marcin Kielar 61beac28d3 Clustered appender for log4js.
+ lib/appenders/clustered.js
+ test/clusteredAppender-test.js

Instead os using sockets (like multiprocess) or dead and unmaintained hook.io, Clustered appender
uses process.send(message) / worker.on('message', callback) mechanisms for transporting data
between worker processes and master logger.

Master logger takes an "appenders" array of actual appenders that are triggered when worker appenders send some data.
This guarantees sequential writes to appenders, so the log messages are not mixed in single lines of log.
2013-08-09 00:04:25 +02:00
Gareth Jones c60d629608 added mocha, simplified logger by removing levels and making immutable 2013-08-08 08:56:09 +10:00
Gareth Jones 8ad1cd67e2 formatting fixes, unnecessary code removed 2013-08-05 11:40:59 +10:00
Gareth Jones 4905761f60 Merge pull request #119 from UniversityofWarwick/category-filter
Category excluding filter.
2013-08-04 18:25:32 -07:00
Gareth Jones 9897dcbc93 trying out weak references, don't think they're going to help 2013-08-05 11:19:53 +10:00
Gareth Jones 5bd7ce3ab9 working, except for tests which expect log levels to persist across getLogger calls 2013-08-02 15:12:04 +10:00
Gareth Jones 3b55aefe6f changed logger to not use events. everything is broken 2013-08-02 11:36:05 +10:00
Lex dde2e69948 Getting console appender to work with node-webkit 2013-07-10 05:07:28 -07:00
Gareth Jones 351a912a86 simplified the reload config code a little, moved the tests into their own file, improved coverage 2013-07-09 09:24:11 +10:00
Gareth Jones c5fd75dac3 removed check on undefined configState.filename - should not happen, and is covered by the statSync anyway 2013-07-09 08:01:41 +10:00
Gareth Jones 4dd5989d27 Merge branch 'master' of https://github.com/nomiddlename/log4js-node
Conflicts:
	test/gelfAppender-test.js
2013-07-08 15:24:29 +10:00
Karl Lam baaebef2ed GELF appender - test case covers custom fields, remove unused
console.log
2013-07-05 15:28:10 +08:00
Karl Lam 837d007de3 GELF appender can add customFields to config for every message 2013-07-05 11:23:59 +08:00
Karl Lam be754f0c0e GELF appender can add custom fields 2013-07-05 10:54:31 +08:00
Gareth Jones 0e5da1d361 moved debug fn out to own module, added tests 2013-06-24 08:51:10 +10:00
Gareth Jones f1c0767ca3 improved coverage 2013-06-17 16:01:03 +10:00
Gareth Jones 652888944b improved coverage for date_format 2013-06-17 16:00:42 +10:00
Gareth Jones efc4e36317 improved coverage for layouts 2013-06-14 08:13:16 +10:00
Gareth Jones dd25d30228 rolled back my clever map+join, because it broke the tests 2013-06-06 07:53:22 +10:00
Gareth Jones 11fe5bde5f increased test coverage for smtp appender 2013-06-05 18:30:11 +10:00
Gareth Jones 41ddf5eea7 merged util.format branch (fixes a lint error and simplifies the code) 2013-06-05 08:52:07 +10:00
Gareth Jones 81fa9c3568 removed unnecessary argument to createNoLogCondition 2013-06-05 08:38:39 +10:00
Gareth Jones 7ca517b5ed simplified createNoLogCondition 2013-06-05 08:37:27 +10:00
Gareth Jones 6368de1094 refactored pattern layout 2013-06-05 08:02:10 +10:00
Gareth Jones 94dbd22c71 reduced complex function to smaller ones 2013-06-04 08:37:36 +10:00
Gareth Jones 5d6f00eda4 fixed all lint errors except ones which require refactoring of code 2013-06-04 08:17:36 +10:00
Gareth Jones f998d7e81a more linting 2013-05-30 08:45:15 +10:00
Gareth Jones 46ae1a586d more linting 2013-05-30 08:26:26 +10:00