2219 Commits

Author SHA1 Message Date
George Kalpakas
23e3a86161
docs(noLogFilter): fix heading (Category Filter --> No-Log Filter) 2022-09-07 10:27:50 +03:00
George Kalpakas
663f6c2d5c
docs(migration-guide): fix typo (have been remove --> have been removed) 2022-09-06 15:41:16 +03:00
Lam Wei Li
588e793d49
Merge pull request #1319 from log4js-node/refactor/log4js.shutdown()
refactor(#1082): removed return value for `log4js.shutdown()`
2022-09-03 17:26:01 +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
6a60294611
Merge pull request #1082 from richardhinkamp/shutdown-type-consistent
Shutdown cb arg can be undefined + always return null
2022-09-03 00:10:50 +08:00
Lam Wei Li
49e301df80
Merge branch 'master' into shutdown-type-consistent 2022-09-03 00:04:24 +08:00
Lam Wei Li
2823a059eb
Merge pull request #1318 from log4js-node/update-test
test: adjusted timeout interval for OS operations
2022-09-02 16:56:47 +08:00
Lam Wei Li
4dc4c59e78
test: adjusted timeout interval for OS operations 2022-09-02 16:37:13 +08:00
Lam Wei Li
accaef82a2
Merge pull request #1317 from log4js-node/refactor/#1316
refactor(#1316): code flow and readability (%C:class, %M:function, %A:alias, %F:full - in order)
2022-09-01 22:28:14 +08:00
Lam Wei Li
462e35a1fb
refactor(#1316): code flow and readability (%C:class, %M:function, %A:alias, %F:full - in order) 2022-09-01 21:54:54 +08:00
Lam Wei Li
be433f26c3
Merge pull request #1316 from l0ner/patternLayout-class-function-alias-names
* FEAT: patternLayout function name, class name and function alias

Added to patternLayout the following fields:

- %M - function name of the caller issuing the logging request
- %C - class name of the caller issuing the logging request
- %A - function alias of the caller issuing the logging request

The first two come from log4j, and use the same field specifiers.

When called from method bar of a Class foo:

- %M will be replaced with bar
- %C will be replaced with Foo
- %A will be empty

When called from function foo:

- %M will be replaced with foo
- %C will be empty
- %A will be empty

%A will be non empty only if the call stack parsed to obtain the values
contains string [as foo].
2022-09-01 19:50:40 +08:00
Pawel "l0ner" Soltys
dd3051d9ed
FIX: typo in LoggingEvent test
Co-authored-by: Lam Wei Li <peteriman@mail.com>
2022-09-01 19:28:45 +08:00
Pawel Soltys
6ea3e43c62 FIX: add missing field to test 2022-09-01 13:02:43 +02:00
Pawel Soltys
5f988bd097 FIX: remove unneeded test cases 2022-09-01 12:54:26 +02:00
Pawel Soltys
4360da010f FIX: missing test cases for %M, %C, %A and %F fields 2022-09-01 12:49:14 +02:00
Pawel Soltys
397b06e15f FEAT: documentation for %F field 2022-09-01 12:48:10 +02:00
Pawel Soltys
03b3f50870 FEAT: added %F field containing fully qualified caller name 2022-08-29 15:11:04 +02:00
Pawel Soltys
396a4de469 FEAT: patternLayout function name, class name and function alias
Added to patternLayout the following fields:

- %M - function name of the caller issuing the logging request
- %C - class name of the caller issuing the logging request
- %A - function alias of the caller issuing the logging request

The first two come from log4j, and use the same field specifiers.

When called from method bar of a Class foo:

- %M will be replaced with bar
- %C will be replaced with Foo
- %A will be empty

When called from function foo:

- %M will be replaced with foo
- %C will be empty
- %A will be empty

%A will be non empty only if the call stack parsed to obtain the values
contains string [as foo].
2022-08-27 22:00:53 +02:00
Lam Wei Li
4e460ffc02
Merge pull request #1312 from log4js-node/update-docs
docs: added quotes for `just-errors` JSON property key
2022-08-15 13:19:42 +08:00
Lam Wei Li
3763c1a4c2
style: ran prettier 2022-08-15 11:28:48 +08:00
Lam Wei Li
95e2d8cb8a
docs: added quotes for just-errors JSON property key 2022-08-15 11:27:39 +08:00
github-actions
03cfcc16cd 6.6.1 v6.6.1 2022-07-26 12:27:23 +00:00
Lam Wei Li
f1f44ca218
docs: updated changelog for 6.6.1 2022-07-26 20:20:07 +08:00
Lam Wei Li
8c55116095
Merge pull request #1309 from log4js-node/dependabot/npm_and_yarn/lodash-4.17.21
chore(deps): bump lodash from 4.17.19 to 4.17.21
2022-07-26 18:23:06 +08:00
Lam Wei Li
66897c853f
Merge pull request #1308 from log4js-node/dependabot/npm_and_yarn/path-parse-1.0.7
chore(deps): bump path-parse from 1.0.6 to 1.0.7
2022-07-26 18:05:11 +08:00
dependabot[bot]
4b25e50ac6
chore(deps): bump lodash from 4.17.19 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 10:00:09 +00:00
dependabot[bot]
324d07fd04
chore(deps): bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 10:00:06 +00:00
Lam Wei Li
4f12966667
Merge pull request #1307 from log4js-node/update-docs
docs: updated changelog for 6.6.1
2022-07-26 17:53:10 +08:00
Lam Wei Li
931f69a5d6
docs: updated changelog for 6.6.1 2022-07-26 17:52:08 +08:00
Lam Wei Li
ea60ad0fd8
Merge pull request #1306 from log4js-node/update-test
test: extended timeout interval for OS operations
2022-07-26 17:29:31 +08:00
Lam Wei Li
745d689696
test: extended timeout interval for OS operations 2022-07-26 17:21:57 +08:00
Lam Wei Li
b6b05d3263
Merge pull request #1305 from log4js-node/downgrade-nyc
chore(deps-dev): downgraded nyc from 15.1.0 to 14.1.1
2022-07-26 17:21:22 +08:00
Lam Wei Li
cbb12e450e
Merge branch 'master' into downgrade-nyc 2022-07-26 17:13:02 +08:00
Lam Wei Li
87b3897686
chore(deps-dev): downgraded nyc from 15.1.0 to 14.1.1 2022-07-26 17:06:36 +08:00
Lam Wei Li
d32677a539
Revert "chore(deps-dev): manually override tap@14.11.0's nyc from 14.1.1 to 15.1.0 due to coverage bug"
This reverts commit 674c043203817e33e7543d70d5999de0217ff34b.
2022-07-26 17:05:19 +08:00
Lam Wei Li
96e305a8eb
Merge pull request #1304 from log4js-node/1292-inconsistency-regarding-configure-signature-of-appendermodule-with-typescript
type: corrected AppenderModule interface and Recording interface
2022-07-26 15:59:08 +08:00
Lam Wei Li
387e7123cb
type: corrected Recording interface 2022-07-26 15:43:09 +08:00
Lam Wei Li
11d4c2243a
type: corrected AppenderModule interface 2022-07-26 15:42:34 +08:00
Lam Wei Li
0c37f4063e
Merge pull request #1303 from log4js-node/ci/update-ci
ci: added tests for Node.js 8.x
2022-07-26 03:54:50 +08:00
Lam Wei Li
83808d59f2
ci: added tests for Node.js 8.x 2022-07-26 03:44:31 +08:00
Lam Wei Li
25a2e83e45
Merge branch 'downgrade-tap' into ci/update-ci 2022-07-26 03:20:53 +08:00
Lam Wei Li
3023b92385
Merge branch 'downgrade-prettier' into ci/update-ci 2022-07-26 03:18:39 +08:00
Lam Wei Li
98e4fdb846
ci: for tap 14 to run on npm >=7 (Node.js >=16) 2022-07-26 03:17:26 +08:00
Lam Wei Li
674c043203
chore(deps-dev): manually override tap@14.11.0's nyc from 14.1.1 to 15.1.0 due to coverage bug 2022-07-26 03:16:29 +08:00
Lam Wei Li
5badf6e685
chore(deps-dev): downgraded tap from 16.3.0 to 14.11.0 for Node.js 8.x compatibility 2022-07-26 03:10:52 +08:00
Lam Wei Li
4bc5589a28
style: ran prettier 2022-07-26 03:07:06 +08:00
Lam Wei Li
2dee68ddee
style: forward-compatible prettier rules and cjs parser 2022-07-26 03:07:06 +08:00
Lam Wei Li
d6d7086531
chore(deps-dev): downgraded prettier from 2.7.1 to 1.19.1 for Node.js 8.x compatibility 2022-07-26 03:06:56 +08:00
Lam Wei Li
7b51d72a79
chore(deps-dev): downgraded for Node.js 8.x compatibility 2022-07-26 03:04:45 +08:00