359 Commits

Author SHA1 Message Date
Lam Wei Li
c9d67604c0
Merge pull request #1110 from peteriman/Fixes-#852-MaxListenersExceededWarning
Avoid creating multiple SIGHUP listeners for File Appender
2022-01-05 23:48:32 +08:00
Lam Wei Li
09b43b1d80
Merge pull request #1089 from jhonatanTeixeira/fix_tcp_error_newer_node
fix: on newer nodejs versions listening to socket errors are required
2022-01-05 23:18:22 +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
3f1ac52866
Added trailing semi-colon 2022-01-05 20:28:32 +08:00
Lam Wei Li
4565359448
Flush the buffer on 'error' 2022-01-05 20:28:27 +08:00
peteriman
ac72e99de3
Creates a 1 SIGHUP handler instead
I think the issue is that each file appender instance adds a SIGHUP handler, when they could all use the same handler. I'll see if I can work on a fix.

_Originally posted by @nomiddlename in https://github.com/log4js-node/log4js-node/issues/852#issuecomment-496316399_
2021-12-17 00:41:48 +08:00
Jhonatan Teixeira
fa366c8abc fix: on newer nodejs versions listening to socket errors are required 2021-07-14 09:49:30 -03:00
Gareth Jones
5c5f54fcf7 fix: tcp-server needs to be loaded even if no categories 2020-05-25 08:55:04 +10:00
Gareth Jones
ff475b9d07
Merge pull request #1015 from lauren-li/fix-webpack-fileSync
fix: fileSync was missing from core appenders
2020-05-25 08:28:35 +10:00
Gareth Jones
fe0713ae08
Merge pull request #1004 from wataash/style-param
style: conform @param to official style
2020-05-25 08:22:59 +10:00
Gareth Jones
4b0c6f41ad
Merge pull request #1002 from rnd-debug/donot-create-appender-if-not-used
Donot create appender if not used
2020-05-25 08:19:47 +10:00
Lauren Li
5468dd7c41 fix: fileSync was missing from core appenders 2020-05-19 16:45:41 -04:00
Cocoa
52185a4984
Fixed ESLint no-else-return error
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-09 04:39:04 +08:00
Cocoa
8cfe1627c6
Only detects ANSI color codes for data in string type
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-09 04:20:49 +08:00
Cocoa
40b5f09fe8
Using regexp literal and .map instead of a loop for replacing
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-07 16:23:20 +08:00
Wataru Ashihara
a81500b7e6
style: conform @param to official style
ref. https://jsdoc.app/tags-param.html
2020-05-04 09:13:36 +09:00
rnd-debug
aabc15d491 style: style fix 2020-05-03 09:59:06 +02:00
rnd-debug
3cb7f52fce fix: will not try to create appender if it is not used in categories 2020-05-03 09:48:47 +02:00
Cocoa
0fda5c5094
Added test for removeColor option
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-02 16:11:23 +08:00
Cocoa
e26d35acfe
Using eslint-disable-next-line
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-02 15:54:33 +08:00
Cocoa
9a29125e72
Disable no-control-regex rule for the line containing \x1b in regex
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-02 15:53:07 +08:00
Cocoa
b18846c297
Fixed ESLint errors
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-02 15:18:40 +08:00
Cocoa
f25c8ed782
Added support for removing embeded color sequence for file appender
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-02 05:24:18 +08:00
rnd-debug
ceae893896 feat: TCP appender - enabling a custom EndMsg token and a custom Layout 2020-04-12 19:34:06 +02:00
Mike Vastola
5aec282f06 fix: Allow appenders to depend on not-yet-loaded appenders.
Close #746
2020-02-01 16:57:20 -05:00
Gareth Jones
fa5b566884 chore: tidied up the language in pause test, fixed a date file mock 2019-11-19 08:35:28 +11:00
Gareth Jones
d7cf0ffe31 Merge branch 'master' of https://github.com/log4js-node/log4js-node 2019-11-19 08:27:33 +11:00
Gareth Jones
a859fe4ab0 chore: made language of pause and resume a bit clearer in test 2019-11-19 08:27:24 +11:00
shayan tabatabaee
3ff4d8b297 fix: Add pause event to dateFile logger 2019-11-15 11:56:19 +03:30
shayan tabatabaee
1a4201878e fix: Adding log4js namespace to pause event 2019-11-13 09:02:11 +03:30
shayan tabatabaee
58bc2ed017 [enhancement]Emmit pause event for node js when buffer is full 2019-09-09 00:20:55 +04:30
Gareth
3c31de3589 chore: updated streamroller dep, fixed test on windows 2019-08-23 08:11:26 +10: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
Gareth Jones
39cd2ef3f6 docs: added explanation of passing appender module in config, and types 2019-06-26 07:57:28 +10:00
Gareth Jones
e0abff4c86
Merge pull request #833 from kaxelson/832-appender-instance
feature: adding the option to provide appender instance in config
2019-06-25 08:44:16 +10:00
Gareth Jones
f5c73efc44 fix(#887): map maxLogSize to maxSize 2019-05-29 08:32:38 +10:00
Gareth Jones
b8db0b5b07 fix: loglevelfilter was missing from core appenders 2019-05-21 08:50:37 +10:00
Gareth Jones
542daa48c1 fix: sighup handler was just nonsense 2019-05-09 08:15:33 +10:00
Martin Heidegger
a06e2cc83c chore: updated dependencies (including eslint) 2019-02-20 23:07:23 +09:00
Knute Axelson
efd5d2c3f4 feature: adding the option to provide appender instance in config 2019-02-04 11:06:47 -06:00
Mattia Capitanio
80ca5965cb feat(noLogFilter): added no log filter regexp in general config 2018-12-02 17:08:39 +01:00
Gareth Jones
0700d6a94e
Merge pull request #794 from so5/multiFile
fix: #793
2018-10-09 07:27:43 +11:00
Gareth Jones
bd7097a8a4
Merge pull request #780 from t4d-io-website/master
fix require.main for use with Node.js mjs modules
2018-10-02 07:38:17 +10:00
Naoyuki Sogo
2a336d9a5d fix: #793 2018-09-28 15:28:29 +09: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
Eric Greene
7e008c8d44 fix require.main for use with Node.js mjs modules 2018-08-16 22:25:02 -04:00
Florian Reinhart
beb4f5d40b
Fix duplicate log messages in TCP server
This also fixes a potential concurrency issue by storing received data per socket connection instead of globally.
2018-07-20 14:33:03 +02:00
Gareth Jones
3a68a1eb96 fix: #756 - handle multiple messages better 2018-07-19 08:13:59 +10:00
Gareth Jones
467f67094a chore: removed the logFaces-UDP appender 2018-07-12 19:58:20 +10:00