2219 Commits

Author SHA1 Message Date
Lam Wei Li
57c9025913
Fixes #1029 2022-02-02 03:06:07 +08:00
Lam Wei Li
8b44299454
Fixes #1086 2022-02-02 03:05:42 +08:00
Lam Wei Li
163c7a1eeb
Update package.json 2022-01-29 00:42:21 +08:00
Lam Wei Li
110a008ae6
Update dateFile.md 2022-01-29 00:40:34 +08:00
Lam Wei Li
e2947474c7
Update file.md 2022-01-29 00:39:37 +08:00
Lam Wei Li
98c9c3513f
Update dateFile.md 2022-01-29 00:34:42 +08:00
Lam Wei Li
e43aa10efe
Merge pull request #1182 from log4js-node/update-docs
chore(docs) - updated file appender doc
2022-01-29 00:31:52 +08:00
Lam Wei Li
eeb4e94cd3
chore(docs) - updated file appender doc 2022-01-29 00:27:16 +08:00
Lam Wei Li
68e70029a9
Merge pull request #1181 from log4js-node/update-docs
chore(docs) - updated dateFile appender docs
2022-01-29 00:26:25 +08:00
Lam Wei Li
28388888c5
chore(docs) - updated dateFile appender docs 2022-01-29 00:21:52 +08:00
Lam Wei Li
e6f3cb1a62
Merge pull request #1180 from log4js-node/update-docs
chore(docs): corrected typo in sample code for multiFile appender
2022-01-28 16:49:53 +08:00
Lam Wei Li
313eb22dc5
chore(docs): corrected typo in sample code for multiFile appender 2022-01-28 16:32:20 +08:00
Lam Wei Li
5f33c8ca24
Merge pull request #1179 from log4js-node/fixes-connectLogger
fix: connectLogger not logging on close
2022-01-28 00:11:36 +08:00
Lam Wei Li
2603c975c6
fix: connectLogger not logging on close 2022-01-27 23:57:19 +08:00
Lam Wei Li
2d52eb484b
Merge pull request #1177 from log4js-node/fixes-logger-constructor-types
fix(types): Logger constructor
2022-01-27 23:04:21 +08:00
Lam Wei Li
9e896aedce
fix(types): Logger constructor 2022-01-27 22:40:58 +08:00
Lam Wei Li
0cb065a79d
chore(deps): updated package-lock.json 2022-01-26 23:18:34 +08:00
Lam Wei Li
292700ab19
Merge pull request #1173 from log4js-node/update-test
chore(dep): bump tap from 14.10.7 to 15.1.6
2022-01-26 23:05:14 +08:00
Lam Wei Li
935e97ae3c
refactor(test): regression from tap v15 2022-01-26 23:01:44 +08:00
Lam Wei Li
d3872208c9
refactor(test): tap v15 - replaced deprecated synonyms, separated tap.has() and tap.match()
https://github.com/tapjs/node-tap/pull/649/files
6d9f5798a9/lib/synonyms.js
2c15bd8779
2022-01-26 20:15:15 +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
008f5b6e66
chore(dep): bump tap from 14.10.7 to 15.1.6 2022-01-26 20:00:48 +08:00
Lam Wei Li
4acb166279
Merge pull request #1172 from log4js-node/update-test
refactor(test): replaced tap deprecation in preparation for tap v15
2022-01-26 19:57:11 +08:00
Lam Wei Li
7376c40ad6
refactor(test): replaced deprecated synonyms (backward-compatible) in preparation for tap v15
https://github.com/tapjs/node-tap/pull/649/files
6d9f5798a9/lib/synonyms.js
2022-01-26 19:15:12 +08:00
Lam Wei Li
166f2252f7
refactor(test): replaced tap.tearDown() (deprecated) to tap.teardown() (backward-compatible) in preparation for tap v15
https://github.com/tapjs/node-tap/pull/649/files
2022-01-26 19:14:56 +08:00
Lam Wei Li
075a5941b4
Merge pull request #1170 from nicojs/test/multiprocess-e2e
test(multiprocess): add e2e test
2022-01-26 03:18:29 +08:00
Nico Jansen
ae4e440813 test(multiprogress): add e2e test
Prevent regression for the multiprocess appender.
2022-01-25 13:42:02 +01:00
github-actions
909a522c27 6.4.1 v6.4.1 2022-01-23 14:42:50 +00:00
Lam Wei Li
461f2fbe8c
Merge pull request #1168 from log4js-node/update-changelog
chore: updated changelog for 6.4.1
2022-01-23 22:36:00 +08:00
Lam Wei Li
060da55fe8
Updated package.json to npm publish CHANGELOG.md and SECURITY.md 2022-01-23 22:32:47 +08:00
Lam Wei Li
1fdc562430
chore: updated changelog for 6.4.1 2022-01-23 22:21:39 +08:00
Lam Wei Li
aed96d1e65
Merge pull request #1167 from log4js-node/dependabot/npm_and_yarn/node-fetch-2.6.7
chore(deps): bump node-fetch from 2.6.6 to 2.6.7
2022-01-23 22:13:10 +08:00
dependabot[bot]
1dd2f173ac
chore(deps): bump node-fetch from 2.6.6 to 2.6.7
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-23 14:06:37 +00:00
Lam Wei Li
2a95915631
Merge pull request #1166 from log4js-node/update-deps
chore(deps-dev): bump typescript from 4.5.4 to 4.5.5
2022-01-23 22:06:03 +08:00
Lam Wei Li
a7ec9bad90
chore(deps-dev): bump typescript from 4.5.4 to 4.5.5 2022-01-23 21:53:02 +08:00
Lam Wei Li
adcd0ffeaf
Merge pull request #1165 from log4js-node/fixed-eslint
fixed eslint
2022-01-23 21:42:27 +08:00
Lam Wei Li
bf2b326e51
fixed eslint 2022-01-23 21:35:21 +08:00
Lam Wei Li
49c91738ea
Merge pull request #1164 from log4js-node/emit-deprecation
emit deprecation
2022-01-23 21:32:16 +08:00
Lam Wei Li
3226b3de40
emit deprecation 2022-01-23 21:26:45 +08:00
Lam Wei Li
4deffd1975
Merge pull request #1163 from log4js-node/added-pattern-alias
refactor date pattern names for clarity (when %date actually means %datetime)
2022-01-23 21:25:45 +08:00
Lam Wei Li
26ed377d6c
fixed eslint 2022-01-23 21:20:34 +08:00
Lam Wei Li
bedbc4152f
refactor date pattern names for clarity (when %date actually means %datetime) 2022-01-23 21:20:26 +08:00
Lam Wei Li
58b73531b9
Merge pull request #1162 from nicojs/patch-1
fix(multiprocess): startup multiprocess even when no direct appenders
2022-01-23 19:34:19 +08:00
Nico Jansen
f127382fa8
fix(multiprocess): startup multiprocess even when no direct appenders attached
Fixes #1161
2022-01-23 00:20:19 +01:00
Gareth Jones
2ddc41d5a1
Merge pull request #1160 from log4js-node/gh-action-publish-typings
Add types check to publish workflow
2022-01-22 09:08:45 +11:00
Gareth Jones
528ce0f07f
Add types check to publish workflow
To avoid accidentally publishing broken typescript definitions to NPM in future.
2022-01-22 09:04:57 +11:00
Gareth Jones
cfdb895219
Merge pull request #1158 from glasser/fix-typings
Make typings match code better
2022-01-22 09:02:08 +11:00
Gareth Jones
e71123909a
Merge pull request #1159 from log4js-node/gh-action-typings
Add step to run typescript tests
2022-01-22 08:55:52 +11:00
Gareth Jones
c3966b5b16
Add step to run typescript tests
This adds the `typings` step to the build, so that we will know if a typescript change breaks things.
2022-01-22 08:52:20 +11:00
David Glasser
58234af1f6 Make typings match code better
Fixes v6.4.0 regressions.

There is an npm script `npm run typings` which actually failed before
this commit. This seems to have been a combination of incorrect typings
(a mandatory argument to `getLevel` that should be optional, the idea
that for custom appenders `configure` should return an intermediate
"generator" function before the appender function itself) as well as
mistakes in the test file (which had an appender module which had one
level of function nesting too few).

Specifically, for the `configure` function on appenders, I believe there
should be two levels of function: an outer function taking one-time
configuration, and an inner function taking an individual log messages.
The typings file wanted there to be three layers, and the test file
wanted there to be one layer.

Fixes #1155.
2022-01-21 10:50:55 -08:00