39 Commits

Author SHA1 Message Date
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
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
2523e17a15
chore(deps-dev): bump prettier from 1.19.1 to 2.7.1 2022-09-28 17:22:38 +08: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
4bc5589a28
style: ran prettier 2022-07-26 03:07:06 +08:00
Lam Wei Li
09c4096c49
test: adjusted regexp for stacktrace for Node.js <=10 2022-07-25 00:25:27 +08:00
Zachary Haber
cad9555948
style: run prettier:fix 2022-06-23 01:00:07 +08:00
Tobias Speicher
aeff6dc882
refactor: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-27 01:47:47 +01:00
Lam Wei Li
7534f9c25f
chore(test): added test coverage for deprecation notices 2022-03-15 15:57:53 +08:00
Lam Wei Li
4f1111ee40
chore(lint): added specific eslint rule(s) to disable for clarity 2022-03-12 01:25:39 +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
Gareth
5addabd6f6 chore: changes to get tests passing on windows 2019-08-16 14:26:39 +10:00
Gareth Jones
70dc4176de chore: I give up. Stupid timezones 2019-08-09 11:35:57 +10:00
Gareth Jones
0b5132a5b1 chore: last timezone attempt 2019-08-09 11:00:57 +10:00
Gareth Jones
da5de8b566 chore: last attempt before I remove the failing test altogether 2019-08-09 10:53:22 +10:00
Gareth Jones
2f578a3de8 chore: I hate timezones 2019-08-07 10:09:30 +10:00
Gareth Jones
82b12e4bf1 chore: really fixed the timezone problem this time 2019-08-07 09:11:27 +10:00
Gareth Jones
335cbeedd7 chore: fixed timezone for test 2019-08-07 08:25:44 +10:00
Gareth Jones
66fe30e9f4 chore: oh shit I changed the eslint rules 2019-08-01 16:57:32 +10:00
Gareth Jones
edf2535130 chore: improved layouts test coverage 2019-08-01 15:05:28 +10:00
Romain
4bfbe7c83d test: fix test for fileName depth specifier 2019-07-09 11:14:09 +02:00
Romain
e70d13200c feat: add delimiter for fileName depth to %f layout patern 2019-07-09 11:00:49 +02:00
Jimmy Huang
ea6cbf06b0 test: add output '' when callstack info not exist 2019-05-20 11:39:19 +08:00
Jimmy Huang
911693f294 chore: fix typo 2019-05-16 10:44:54 +08:00
Jimmy Hunag
daeb754e47 test: cover layout-test 2019-05-16 01:11:47 +08:00
Martin Heidegger
a06e2cc83c chore: updated dependencies (including eslint) 2019-02-20 23:07:23 +09:00
Gareth Jones
09c02e0b39 fix: all tests passing now with updated streamroller 2019-01-24 08:33:15 +11:00
Gareth Jones
16b8754088 fix: removed semver dep, not needed 2018-07-16 07:49:25 +10:00
Teamop
095ede2bdf fix(#730): make the red color lighter for error 2018-06-18 17:33:55 +08:00
Gareth Jones
8627f743ef fix(#614): bumped deps of debug, date-format, streamroller 2017-11-17 08:47:45 +11:00
Rami Cohen
0e13be9f91 chore: upgraded dev deps 2017-11-12 19:14:23 -07:00
Gareth Jones
0d10e2ade5 feat(levels): custom colours for levels in config #90 #254 2017-07-02 23:52:29 +10:00
Jorge Silva
6e15364ef5 feat(#130): Add support for MDC in pattern layout 2017-06-17 13:59:06 +01:00
Gareth Jones
7d13b6e04f fix(test): fixing regexp for older node versions 2016-12-30 19:12:33 +11:00
Gareth Jones
fdf9558b6d fix(test): simpler regexp in layouts test 2016-12-30 19:06:52 +11:00
Gareth Jones
d3dbaf5f3e fix(test): moved layouts test to tap 2016-12-30 19:02:45 +11:00