35 Commits

Author SHA1 Message Date
Lam Wei Li
2523e17a15
chore(deps-dev): bump prettier from 1.19.1 to 2.7.1 2022-09-28 17:22:38 +08:00
Lam Wei Li
4bc5589a28
style: ran prettier 2022-07-26 03:07:06 +08:00
Zachary Haber
cad9555948
style: run prettier:fix 2022-06-23 01:00:07 +08:00
Tobias Speicher
aeff6dc882
refactor: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-27 01:47:47 +01:00
Lam Wei Li
3291aae870
chore(lint): should not disable eslint rule, prefer-arrow-callback, in file-level 2022-03-12 15:43:37 +08:00
Lam Wei Li
235656df8d
chore(lint): should not disable eslint rule, no-cond-assign, in file-level 2022-03-12 15:43:05 +08:00
Lam Wei Li
b705fa57c7
Removed redundant logic in multiprocessAppender 2022-03-03 21:34:56 +08:00
Lam Wei Li
d6f500c5dc
chore(refactor): removed comments 2022-02-04 17:54:35 +08:00
Lam Wei Li
0144f9a9d5
Merge pull request #529 from harlentan/patch-1
fix worker will die if the master exit
2022-01-05 23:17:47 +08:00
Lam Wei Li
4565359448
Flush the buffer on 'error' 2022-01-05 20:28:27 +08:00
Gareth Jones
66fe30e9f4 chore: oh shit I changed the eslint rules 2019-08-01 16:57:32 +10:00
Gareth Jones
863ac65227 chore: made one of the tests simpler trying to diagnose a weird problem 2019-07-15 12:00:51 +10:00
LoneRifle
7f248c4177 refactor(multiprocess): serialisation consistency
Delegate all serialisation tasks to LoggingEvent, instead of
maintaining a separate codepath in the multiprocess appender
2018-09-25 23:32:30 +08:00
Nico Jansen
5024badbe7 fix(#713): handle unexpected hangups in multiprocess appender
Handle the `'error'` event on client sockets of worker logger.
2018-05-16 06:52:01 +02:00
Gareth Jones
835189696d fix(cluster): added circular json dep 2017-12-12 08:17:53 +11:00
Harlen Tan
fc2ba410ad fix worker will die if the master exit 2017-08-24 17:59:00 +08:00
Gareth Jones
8e0ce26e44 fix(multiprocess): worker shutdown fix, and updated example 2017-06-13 08:39:56 +10:00
Gareth Jones
4333261721 fix(levels): added level configuration, fixed smtp appender 2017-03-09 08:28:41 +11:00
Gareth Jones
514fb9c771 fix(test): got multiprocess tests working 2017-02-27 08:25:11 +11:00
Gareth Jones
d26b1a147b refactor: fixed a few more tests 2017-02-08 09:10:14 +11:00
Gareth Jones
399562737a Merge branch 'es6-refactor' of https://github.com/e-cloud/log4js-node into e-cloud-es6-refactor 2016-12-21 22:08:00 +11:00
Gareth Jones
c478c53db1 Fix for #397 - multiprocess shutdown 2016-12-21 08:24:09 +11:00
e-cloud
7d9dc55ff2 style: upgrade eslint and format the code
no logic changed.
2016-12-12 21:04:34 +08:00
e-cloud
85f31cf524 refactor: appenders/multiprocess.js 2016-07-15 21:33:58 +08:00
e-cloud
5328e03802 refactor: just format code according to the editor config(tests passed) 2016-07-14 17:36:30 +08:00
Gareth Jones
97fc892c00 fixing some jshint errors 2016-04-29 09:11:17 +10:00
Emile Cantin
abdba8e56f Added logic to serialize Error objects correctly
This should fix #97.
2013-09-26 14:55:20 -04:00
Gareth Jones
5d6f00eda4 fixed all lint errors except ones which require refactoring of code 2013-06-04 08:17:36 +10:00
Gary Steven
e58cf201ca Updated for Node 0.10.x
net.createServer no longer emits 'connect' event
2013-03-30 03:23:58 -07:00
Mário Freitas
8e53c6213e fix: pass options from multiprocess appender to inner appender 2013-02-21 00:06:59 +09:00
Gareth Jones
a9307fd6da fix for issue #100, multiprocess appender and logLevelFilter don't play nicely 2012-11-09 16:02:16 +11:00
Gareth Jones
a33e48cb07 Changed multiprocess appender to use a single socket per client 2012-07-04 08:44:50 +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
Danny Brain
a95117c0d3 Add tests for multiprocess file appender 2011-11-03 09:10:02 +11:00
Danny Brain
097390bc89 Add multiprocess appender, pending tests 2011-11-02 15:49:46 +11:00