16 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
879e8c7646
refactor(test): forward-compatible with tap v15 when callback is removed from beforeEach and afterEach
in tap 15.0.0, libtap was added:
https://github.com/tapjs/libtap/compare/v0.3.0...v1.0.0#diff-e41924228a867ab0a0d8689f84ae6d826da70a0d65fc59ae2c69539035c4ef6aL905-L915
2022-07-25 22:37:42 +08:00
Lam Wei Li
5f617cc94b
refactor(test): added callback for beforeEach() and afterEach() for tap v14 downgrade 2022-07-25 22:37:32 +08:00
Zachary Haber
cad9555948
style: run prettier:fix 2022-06-23 01:00:07 +08:00
Lam Wei Li
c7c72cc879
refactor(test): tap v15 - removed callback from beforeEach() and afterEach()
c363aebf69
2022-01-26 20:12:53 +08:00
Lam Wei Li
c226cb7569
test: update fakeFS.read as graceful-fs uses it
`fs-extra@10.0.0` broke it as it removed the check for `fs.realpath.native`.

```diff
+L064 exports.realpath.native = u(fs.realpath.native)

-L126
-L127 // fs.realpath.native only available in Node v9.2+
-L128 if (typeof fs.realpath.native === 'function') {
-L129   exports.realpath.native = u(fs.realpath.native)
-L130 }
```
_(https://github.com/jprichardson/node-fs-extra/pull/887/files)_

When `fs.realpath` is an empty function, fs.realpath.native is `undefined`.

25c17ad980/test/tap/configuration-test.js (L17)
2022-01-14 21:13:13 +08:00
Lam Wei Li
7a3f2284e8
test: update fakeFS.read as graceful-fs uses it
graceful-fs broke it as it changed to use `Object.setPrototypeOf(read, fs$read`).

c55c1b8cb3 (diff-f740ecac46b2fdaa68156b133262813aa6f66218b11d8709bab83580e76e486dR136)

What this means is that, if `fakeFS.read` is `undefined`, it throws an error as `Object.setPrototypeOf` doesn't accept `undefined` in its parameters.
2022-01-14 02:49:17 +08:00
Gareth Jones
66fe30e9f4 chore: oh shit I changed the eslint rules 2019-08-01 16:57:32 +10:00
Gareth Jones
3804caf904 chore: updated streamroller to v2, means we cannot support node v6 2019-08-01 10:58:09 +10:00
Gareth Jones
09c02e0b39 fix: all tests passing now with updated streamroller 2019-01-24 08:33:15 +11:00
Gareth Jones
5b8a4b347a Merge remote-tracking branch 'origin/master' into version-3.x 2018-02-16 07:50:43 +11:00
Ilya Denisov
9f5b7be2e6 test(configure): testing the value returned by configure(...). 2018-02-12 21:07:03 +02:00
Gareth Jones
8f7fde9da0 fix(test): sandboxed-module -> log4js-node version 2018-02-01 07:56:49 +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
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
59186499ca fix(test): moved configuration test to tap 2016-12-27 14:38:39 +11:00