140 Commits

Author SHA1 Message Date
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
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
Gareth Jones
99571a5c9a added passing shutdown function to addAppender, also added enableLogWrites call to clearAppenders 2016-12-15 08:17:44 +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
02d6c017f4 Merge branch 'master'
Conflicts:
	.travis.yml
	lib/appenders/dateFile.js
	lib/appenders/file.js
	lib/appenders/fileSync.js
	lib/appenders/gelf.js
	lib/appenders/logFacesAppender.js
	lib/date_format.js
	lib/debug.js
	lib/layouts.js
	lib/log4js.js
	lib/log4js.json
	lib/logger.js
	lib/streams/BaseRollingFileStream.js
	lib/streams/DateRollingFileStream.js
	lib/streams/RollingFileStream.js
	lib/streams/index.js
	package.json
	test/layouts-test.js
	test/streams/BaseRollingFileStream-test.js
	test/streams/DateRollingFileStream-test.js
	test/streams/rollingFileStream-test.js
2016-12-12 17:42:34 +08:00
Gareth Jones
7368cd33dc fix for #419 - calling replace console outside of configure breaks things 2016-11-09 07:50:56 +11:00
Gareth Jones
3a627144fb Shutdown now removes the config reload timer (fix for issue #414) 2016-11-04 08:33:40 +11:00
Gareth Jones
2b84671471 changed default appender to stdout, replaced streams with streamroller, started removal of vows tests 2016-10-23 11:50:53 +11:00
e-cloud
495d87c521 refactor: fallback some code to support Node.js v4
1. reintroduce `semver` to support code >=4 && <6
2. fallback syntax like rest parameter and default parameter
3. update `sandboxed-module` to fix "strict mode error"
2016-07-18 15:42:05 +08:00