Commit Graph

5 Commits

Author SHA1 Message Date
Gareth Jones
491c2709e7 changed the way appenders are loaded, so that they don't need to include log4js as a direct dependency 2013-09-15 14:37:01 +10:00
Gareth Jones
5e144e4004 fixing some lint issues 2013-08-29 16:56:40 +10:00
Gareth Jones
46ad57b4e0 all tests converted to mocha 2013-08-29 08:49:42 +10:00
Gareth Jones
eabcaf8aef moved cluster support into core, removed clustered appender, multiprocess appender 2013-08-24 20:46:10 +10: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