2153 Commits

Author SHA1 Message Date
Lam Wei Li
e337bcdb8f
feat: new crlfFilter appender to prevent log forging 2023-01-18 12:19:53 +08:00
Lam Wei Li
8fd25d55e1
feat: allow multiple appenders for filters configuration 2023-01-18 12:19:52 +08:00
Lam Wei Li
0696f63f68
Merge pull request #1357 from log4js-node/dependabot/npm_and_yarn/json5-1.0.2
chore(deps): bump json5 from 1.0.1 to 1.0.2
2023-01-08 18:26:34 +08:00
dependabot[bot]
29d45723fd
chore(deps): bump json5 from 1.0.1 to 1.0.2
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-08 03:31:08 +00:00
Lam Wei Li
ee0f4e46e2
Merge pull request #1346 from Mumeii/feature/issue-1341
feat issue #1341 (Layouts) : support a specifier on %m
2022-12-06 00:01:22 +08:00
Benoît Lefèvre
5631e2ac22 feat issue #1341 (Layouts) : removing duplicated test 2022-12-05 12:01:40 +01:00
Benoît Lefèvre
0632c2197e feat issue #1341 (Layouts) : taking into account code review's feedback 2022-12-03 22:49:28 +01:00
Lam Wei Li
f5907539ec Merge pull request #1351 from log4js-node/update-ci
ci: replaced deprecated github set-output
2022-12-02 22:39:46 +08:00
Lam Wei Li
5177db3db0
ci: replaced deprecated github set-output
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-12-02 22:32:22 +08:00
Benoît Lefèvre
e01c3c7bbf feat issue #1341 (Layouts) : use split instead of regexp 2022-11-30 23:21:46 +01:00
Benoît Lefèvre
ab43399200 feat issue #1341 (Layouts) : fix typo & add related doc entry 2022-11-28 10:04:25 +01:00
github-actions
43bdea7243 6.7.1 v6.7.1 2022-11-28 03:34:16 +00:00
Lam Wei Li
041740c94f
Merge pull request #1350 from log4js-node/update-docs
docs: updated changelog for 6.7.1
2022-11-28 11:19:31 +08:00
Lam Wei Li
ffcfe6ecff
docs: updated changelog for 6.7.1 2022-11-28 11:15:01 +08:00
Lam Wei Li
1083059937
Merge pull request #1349 from log4js-node/update-deps
chore(deps-dev): updated dependencies
2022-11-28 11:07:23 +08:00
Lam Wei Li
9fde6b0ba5
chore(deps-dev): updated package-lock.json 2022-11-28 11:01:27 +08:00
Lam Wei Li
0cb6597da8
chore(deps-dev): bump typescript from 4.8.4 to 4.9.3 2022-11-28 11:01:08 +08:00
Lam Wei Li
3f408bdd94
chore(deps-dev): bump tap from 16.3.0 to 16.3.2 2022-11-28 11:00:29 +08:00
Lam Wei Li
0db73ccb1f
chore(deps-dev): bump prettier from 2.7.1 to 2.8.0 2022-11-28 10:59:53 +08:00
Lam Wei Li
dc9b126c38
chore(deps-dev): bump husky from 8.0.1 to 8.0.2 2022-11-28 10:59:15 +08:00
Lam Wei Li
1c7172d188
chore(deps-dev): bump eslint from 8.24.0 to 8.28.0 2022-11-28 10:58:46 +08:00
Lam Wei Li
56dadc2682
chore(deps-dev): bump @commitlint/config-conventional from 17.1.0 to 17.3.0 2022-11-28 10:57:32 +08:00
Lam Wei Li
2df7c51fec
chore(deps-dev): bump @commitlint/cli from 17.1.2 to 17.3.0 2022-11-28 10:56:45 +08:00
Lam Wei Li
49d93e09c4
Merge pull request #1348 from log4js-node/1347-types-not-correct-for-adding-custom-levels-to-configure-object
type: updated Configuration.levels type to allow for custom log levels
2022-11-17 14:52:23 +08:00
Lam Wei Li
317282fc45
type: updated Configuration.levels type to allow for custom log levels 2022-11-17 14:41:47 +08:00
Benoît Lefèvre
aedef32bb9 feat issue #1341 (Layouts) : support a specifier on %m 2022-11-14 02:13:14 +01:00
Lam Wei Li
b2c97040fb
Merge pull request #1338 from dtslvr/patch-1
Fix typo
2022-10-25 19:15:32 +08:00
Thomas Kaul
b1e91f0fa2
Fix typo 2022-10-24 11:05:30 +02:00
github-actions
a08da654c9 6.7.0 v6.7.0 2022-10-01 20:05:33 +00:00
Lam Wei Li
8d4e3f36d5
Merge pull request #1335 from log4js-node/update-docs
docs: updated changelog for 6.7.0
2022-10-02 03:57:48 +08:00
Lam Wei Li
cb29b3ee3a
docs: updated changelog for 6.7.0 2022-10-02 03:56:53 +08:00
Lam Wei Li
7ca308dfde
Merge pull request #1334 from log4js-node/feat/invalid-shutdown-callback
feat(log4js): if cb is passed to `shutdown()`, it must be a function or it will throw error immediately
2022-10-02 02:57:33 +08:00
Lam Wei Li
b548119f47
ci: clean up 2022-10-02 02:55:00 +08:00
Lam Wei Li
4c12243d26
docs: updated api.md for setParseCallStackFunction 2022-10-02 02:54:59 +08:00
Lam Wei Li
d2ef2628a7
refactor(log4js): no need for .reduceRight(), use .reduce() instead 2022-10-02 02:54:58 +08:00
Lam Wei Li
a10f4a2941
feat(log4js): if cb is passed to shutdown(), it must be a function or it will throw error immediately 2022-10-02 02:54:57 +08:00
Lam Wei Li
cfbc7a08a6
Merge pull request #1333 from log4js-node/refactor/LoggingEvent
refactor(LoggingEvent): loop through location keys instead of hard-coding one-by-one
2022-10-02 01:20:06 +08:00
Lam Wei Li
6a8b706590
test(Logger): apart from asserting a throw, also assert the thrown error message 2022-10-02 01:15:06 +08:00
Lam Wei Li
6f697ad317
fix(LoggingEvent): throws error for invalid location passed when creating a new LoggingEvent 2022-10-02 01:15:05 +08:00
Lam Wei Li
31ae2b258d
refactor(LoggingEvent): loop through location keys instead of hard-coding one-by-one 2022-10-02 00:54:50 +08:00
Lam Wei Li
570ef530dc
Merge pull request #1332 from log4js-node/fix/serde
fix(LoggingEvent): serde for `NaN`, `Infinity`, `-Infinity`, `undefined`
2022-10-01 18:57:05 +08:00
Lam Wei Li
ffa9e5e2e4
refactor: typeof to check for undefined (because undefined can be a variable name) 2022-10-01 18:38:14 +08:00
Lam Wei Li
8b44497193
test(logLevelFilter): renamed test description with correct filenames 2022-10-01 18:38:13 +08:00
Lam Wei Li
6f9c436896
fix(LoggingEvent): serde for NaN, Infinity, -Infinity, undefined 2022-10-01 18:37:41 +08:00
Lam Wei Li
916eef11f1
Merge pull request #1269 from ZachHaber/master
Add ability to use passed in Errors for callstacks and adjust how deeply you want to look for information
2022-09-30 01:00:13 +08:00
Zachary Haber
0089e784b4
refactor: remove duck typing 2022-09-30 00:55:23 +08:00
Zachary Haber
b1598c04c7
feat: add error to logging event from logger 2022-09-30 00:55:20 +08:00
Zachary Haber
0683535e0f
feat: add error property to LoggingEvent 2022-09-30 00:27:49 +08:00
Zachary Haber
4ffbcae8b2
chore: update docs 2022-09-29 23:35:57 +08:00
Zachary Haber
0465894412
chore: tests for new parseCallStack functionality and changes 2022-09-29 23:27:50 +08:00