147 Commits

Author SHA1 Message Date
Lam Wei Li
df8931703b
feat: added log4js.isConfigured() API 2023-02-20 13:31:02 +08:00
Lam Wei Li
d2ef2628a7
refactor(log4js): no need for .reduceRight(), use .reduce() instead 2022-10-02 02:54:58 +08:00
Lam Wei Li
a10f4a2941
feat(log4js): if cb is passed to shutdown(), it must be a function or it will throw error immediately 2022-10-02 02:54:57 +08:00
Lam Wei Li
c7b3814f0d
docs: updated documentation 2022-09-03 17:13:49 +08:00
Lam Wei Li
a8418a0c85
refactor(#1082): removed return value for log4js.shutdown() 2022-09-03 17:13:48 +08:00
Lam Wei Li
49e301df80
Merge branch 'master' into shutdown-type-consistent 2022-09-03 00:04:24 +08:00
Zachary Haber
cad9555948
style: run prettier:fix 2022-06-23 01:00:07 +08:00
Lam Wei Li
51ac865bef
Merge pull request #1103 from polo-language/recording-typescript
Expose recording in typescript
2022-01-19 02:04:45 +08:00
peteriman
44bf7ce5bb
Improved code readability for shutdown() function 2022-01-04 15:58:47 +08:00
peteriman
1e066b9bfa
Patched file descriptor leak by:
- subsequent log4js.configure() will run log4js.shutdown() first
- log4js.shutdown() will always clear/reset existing appenders and categories
2022-01-04 15:56:36 +08:00
Angelo Polo
5b320e3b2f fix: Expose recording in typescript types 2021-11-11 10:51:57 +01:00
Richard Hinkamp
fc1ccbeb41 Shutdown cb arg can be undefined + always return null 2021-06-09 21:19:38 +02:00
aaropn-edwards
a1197982e2 fix: Adds guards for undefiend callback functions in shutdown method
This fixes issue #971
2019-11-21 10:14:17 +11:00
Gareth Jones
ab32e753b2 chore: improved coverage in log4js.js 2019-08-02 10:51:21 +10:00
Gareth Jones
66fe30e9f4 chore: oh shit I changed the eslint rules 2019-08-01 16:57:32 +10:00
Jimmy Huang
c49ea03ca6 revert: remove global useCallStack 2019-05-17 15:10:39 +08:00
Jimmy Huang
5342a8dcd5 feat: add log4js.useCallStack() to enable/disable all loggers' callStack 2019-05-16 20:24:44 +08:00
Jimmy Huang
9d1e325238 feat: add category enableCallStack opt. (default: false) 2019-05-16 16:53:27 +08:00
Martin Heidegger
a06e2cc83c chore: updated dependencies (including eslint) 2019-02-20 23:07:23 +09:00
Jimmy Hunag
461370ced6 fix: #743 use deepclone 2018-08-11 03:26:50 +08:00
Gareth Jones
805c566bb5 chore: mentioned issue number in config fix 2018-07-29 13:59:59 +10:00
Jimmy Hunag
7d9fdc9d29 chore: add clone comment in configure 2018-07-29 03:18:41 +08:00
Jimmy Huang
06c448727b fix: #743 cannot modify immutable configuration 2018-07-27 14:44:03 +08:00
Gareth Jones
5b8a4b347a Merge remote-tracking branch 'origin/master' into version-3.x 2018-02-16 07:50:43 +11:00
Ilya Denisov
2bc9a5483f feat(configure): configure(...) returning the log4js object. 2018-02-12 21:06:08 +02:00
Gareth Jones
11b21ce773 fix(webpack): added loading of core appenders 2018-02-01 07:58:46 +11:00
Gareth Jones
df58b2a466 fix(#652): access levels before configure is called 2018-01-19 08:10:35 +11:00
Gareth Jones
b44794437d chore(merge): manual merge from v2.5.0 2018-01-18 08:19:15 +11:00
Gareth Jones
8084e80027 fix(tests): tests failing - config listeners not working in sandbox 2018-01-17 08:24:50 +11:00
Tomas Mihalcin
d92d885518 fix: deferred logger configuration.
logger will be configured either by user or at first call to getLogger
2018-01-15 09:33:54 +01:00
Gareth Jones
da703cdebb chore(merge): merged 2.4.1 from master 2017-12-13 08:35:46 +11:00
Gareth Jones
f2f9790bec fix(cluster): potential bug when cluster not available 2017-12-12 08:32:35 +11:00
Gareth Jones
835189696d fix(cluster): added circular json dep 2017-12-12 08:17:53 +11:00
Gareth Jones
319562914b fix(tcp): interim commit while I work on something else 2017-12-12 08:03:57 +11:00
Gareth Jones
6f4dfeaafc Merge branch 'master' into tcp-refactor 2017-11-21 08:17:47 +11:00
Gareth Jones
8627f743ef fix(#614): bumped deps of debug, date-format, streamroller 2017-11-17 08:47:45 +11:00
Gareth Jones
aeed9d6c92 fix(tcp): moved serialisation code to logevent 2017-10-12 08:31:54 +11:00
Gareth Jones
f266757fcf fix(cluster): add flag to turn off the cluster support 2017-09-25 09:47:03 +10:00
Gareth Jones
fc3b0e243c fix(pm2): was missing logs on instance=0 2017-07-28 08:12:51 +10:00
Gareth Jones
81ddd053e2 feat(pm2): got tests for pm2 working 2017-07-21 08:35:36 +10:00
Gareth Jones
84ab47d6e5 feat(pm2): got pm2 working, needs tests 2017-07-18 22:42:06 +10:00
Gareth Jones
0398bf804b fix(connect): exporting connect logger 2017-07-10 17:12:52 +10:00
Gareth Jones
58e65543fa fix(cluster): removed cluster appender, moved cluster handling into core 2017-07-07 08:48:17 +10:00
Gareth Jones
b59f882a7a docs(layouts): added docs for layouts, and code for custom layouts 2017-06-06 08:29:38 +10:00
Gareth Jones
d27ae8694e fix(logger): logger levels now shared across instances of same category 2017-04-28 08:29:14 +10:00
Gareth Jones
4333261721 fix(levels): added level configuration, fixed smtp appender 2017-03-09 08:28:41 +11:00
Gareth Jones
d26b1a147b refactor: fixed a few more tests 2017-02-08 09:10:14 +11:00
Gareth Jones
1d50b82a96 refactor: fixed a few more appenders 2017-02-07 08:53:51 +11:00
Gareth Jones
5283782ba0 refactor(all): basic logging to stdout works again
- removed config reloading
- removed console replacement
- added recording appender
- added config validation
- changed config format
2017-02-05 10:05:49 +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