Zachary Haber
89b8a58f3f
feat: use data Error for callStack information
...
use the first data value if an Error to get callstack info. Only 1 line will be stripped from it by default
Refs: #1268
2022-09-29 23:27:47 +08:00
Zachary Haber
22c7d224de
chore: separate out CallStack type from base LoggingEvent
2022-09-29 23:27:47 +08:00
Lam Wei Li
3bc94fdd45
Merge pull request #1330 from log4js-node/update-deps
...
chore(deps): bump typescript from 4.8.3 to 4.8.4
2022-09-28 17:33:45 +08:00
Lam Wei Li
22a80cf193
chore(deps): bump typescript from 4.8.3 to 4.8.4
2022-09-28 17:32:18 +08:00
Lam Wei Li
1895d3132f
Merge pull request #1329 from log4js-node/update-deps
...
chore(deps-dev): updated dependencies
2022-09-28 17:28:23 +08:00
Lam Wei Li
b230e19710
chore(deps-dev): updated package-lock.json
2022-09-28 17:23:28 +08:00
Lam Wei Li
2523e17a15
chore(deps-dev): bump prettier from 1.19.1 to 2.7.1
2022-09-28 17:22:38 +08:00
Lam Wei Li
7ce7d42621
chore(deps-dev): bump eslint-plugin-prettier from 3.4.1 to 4.2.1
2022-09-28 17:22:01 +08:00
Lam Wei Li
ea7aeb2537
chore(deps-dev): bump tap from 14.11.0 to 16.3.0
2022-09-28 17:20:42 +08:00
Lam Wei Li
995ef69a30
chore(deps-dev): bump nyc from 14.1.1 to 15.1.0
2022-09-28 17:20:13 +08:00
Lam Wei Li
ae75c368f6
Merge pull request #1328 from log4js-node/update-ci
...
ci: skip prettier on older Node.js (8.x, 10.x, 12.x)
2022-09-28 17:14:11 +08:00
Lam Wei Li
2591afb379
ci: skip prettier on older Node.js (8.x, 10.x, 12.x)
2022-09-28 17:05:21 +08:00
Lam Wei Li
c0e211f6f4
ci: manually downgrade dev dependencies for older versions
2022-09-28 17:05:18 +08:00
Lam Wei Li
f94c799dab
Merge pull request #1327 from log4js-node/update-deps
...
chore(deps): updated dependencies
2022-09-27 22:46:21 +08:00
Lam Wei Li
f4d050ce98
chore(deps): updated package-lock.json
2022-09-27 22:38:47 +08:00
Lam Wei Li
c84b19350d
chore(deps): bump streamroller from 3.1.2 to 3.1.3
2022-09-27 22:38:45 +08:00
Lam Wei Li
dec44f1b9d
chore(deps): bump flatted from 3.2.6 to 3.2.7
2022-09-27 22:38:44 +08:00
Lam Wei Li
1fb8b14864
chore(deps): bump date-format from 4.0.13 to 4.0.14
2022-09-27 22:38:43 +08:00
Lam Wei Li
4805867a68
chore(deps-dev): bump typescript from 4.7.4 to 4.8.3
2022-09-27 22:38:42 +08:00
Lam Wei Li
a60fe997c5
chore(deps-dev): bump fs-extra from 8.1.0 to 10.1.0
2022-09-27 22:38:41 +08:00
Lam Wei Li
a8f0df0336
chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 8.5.0
2022-09-27 22:38:40 +08:00
Lam Wei Li
26066bda30
chore(deps-dev): bump eslint-config-airbnb-base from 14.2.1 to 15.0.0
2022-09-27 22:38:39 +08:00
Lam Wei Li
465f8ce6a8
chore(deps-dev): bump eslint from 6.8.0 to 8.24.0
2022-09-27 22:38:38 +08:00
Lam Wei Li
ffb8c64e86
chore(deps-dev): bump @commitlint/config-conventional from 17.0.3 to 17.1.0
2022-09-27 22:38:37 +08:00
Lam Wei Li
7d97e1e1e3
chore(deps-dev): bump @commitlint/cli from 17.0.3 to 17.1.2
2022-09-27 22:38:37 +08:00
Lam Wei Li
859b120423
Merge pull request #1326 from log4js-node/update-ci
...
ci: manually downgrade dev dependencies for older versions
2022-09-27 22:26:09 +08:00
Lam Wei Li
0f9482acd8
ci: manually downgrade dev dependencies for older versions
2022-09-27 22:18:03 +08:00
Lam Wei Li
447b949ebd
Merge pull request #1325 from log4js-node/update-ci
...
ci: removed scheduled job from codeql and separated npm audit
2022-09-26 13:59:10 +08:00
Lam Wei Li
aee424141b
ci: removed scheduled job from codeql and separated npm audit
2022-09-26 13:48:53 +08:00
Lam Wei Li
084479c351
Merge pull request #1322 from gkalpak/patch-2
...
docs(noLogFilter): fix heading (`Category Filter` --> `No-Log Filter`)
2022-09-07 17:18:56 +08:00
Lam Wei Li
46ddb075d8
Merge pull request #1321 from gkalpak/patch-1
...
docs(migration-guide): fix typo (`have been remove` --> `have been removed`)
2022-09-07 17:17:27 +08:00
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