20 Commits

Author SHA1 Message Date
Benoît Lefèvre
0632c2197e feat issue #1341 (Layouts) : taking into account code review's feedback 2022-12-03 22:49:28 +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
Thomas Kaul
b1e91f0fa2
Fix typo 2022-10-24 11:05:30 +02: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
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
Pawel Soltys
397b06e15f FEAT: documentation for %F field 2022-09-01 12:48:10 +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
4bc5589a28
style: ran prettier 2022-07-26 03:07:06 +08:00
Zachary Haber
cad9555948
style: run prettier:fix 2022-06-23 01:00:07 +08:00
Lam Wei Li
a1b6929b7f
Merge pull request #1219 from log4js-node/update-docs
chore(docs): updated docs for broken links and inaccessible pages
2022-03-21 13:18:19 +08:00
Lam Wei Li
b23f208165
chore(docs): fixed broken links 2022-03-21 13:18:16 +08:00
Matt Alexander
68a85f956e
Broken link to https://github.com/log4js-node/gelf 2022-03-21 13:18:12 +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
Gareth Jones
2f45b084fb fix: truncation and padding for stacktraces 2019-10-22 08:58:46 +11:00
Romain
e70d13200c feat: add delimiter for fileName depth to %f layout patern 2019-07-09 11:00:49 +02:00
Gareth Jones
d80f3f10d5 docs: line number feature documentation 2019-05-22 08:43:45 +10:00
Gareth Jones
118689d00c docs(layouts): added the MDC tokens to pattern layout 2017-06-19 08:10:50 +10:00
Gareth Jones
a1318b7fd2 docs(layouts): fixed a few minor errors 2017-06-06 08:35:47 +10:00
Gareth Jones
b59f882a7a docs(layouts): added docs for layouts, and code for custom layouts 2017-06-06 08:29:38 +10:00
Gareth Jones
1f05f01e15 docs(layout): improved documentation 2017-04-16 14:23:11 +10:00