27 Commits

Author SHA1 Message Date
Lam Wei Li
d94284aeb8
chore(test): improve test coverage for fileAppender
appenders/file.js - Line 70 - return d;
2022-02-04 17:44:11 +08:00
Lam Wei Li
42eb04e266
chore(test): improve test coverage for adapters
appenders/adapters.js - Line 16 - throw Error(`maxLogSize: "${maxLogSize}" is invalid`);
2022-02-04 17:44:08 +08:00
Lam Wei Li
d3872208c9
refactor(test): tap v15 - replaced deprecated synonyms, separated tap.has() and tap.match()
https://github.com/tapjs/node-tap/pull/649/files
6d9f5798a9/lib/synonyms.js
2c15bd8779
2022-01-26 20:15:15 +08:00
Lam Wei Li
166f2252f7
refactor(test): replaced tap.tearDown() (deprecated) to tap.teardown() (backward-compatible) in preparation for tap v15
https://github.com/tapjs/node-tap/pull/649/files
2022-01-26 19:14:56 +08:00
Lam Wei Li
ac599e42c6
allow for zero backup - in sync with https://github.com/log4js-node/streamroller/pull/74
**Important**
It is also to note the file does not roll within itself (truncate its older entry for newer entry).
It truncates all and appends only the new entry.

```javascript
var rollers = require('streamroller');
var stream = new rollers.RollingFileStream('myfile', 6, 0);
stream.write("abc"); // add as first row
stream.write("def"); // add as second row
stream.write("ghi"); // truncate all and add as first row
stream.end();
```

Output:
```
myfile   - ghi
```
2022-01-20 01:47:15 +08:00
peteriman
c0f95fa53a
chore(test): update teardown() for tests to remove tmp files 2022-01-19 01:37:22 +08:00
Cocoa
b088498957
Fixed ESLint error about indentation
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-02 16:18:24 +08:00
Cocoa
b179740152
Fixed a copy-paste error and fixed warnings about exceeding the maximum line length
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-02 16:15:43 +08:00
Cocoa
0fda5c5094
Added test for removeColor option
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-05-02 16:11:23 +08:00
Gareth
3c31de3589 chore: updated streamroller dep, fixed test on windows 2019-08-23 08:11:26 +10:00
Gareth Jones
fb48f66d29 fix: test was failing in unix/mac 2019-08-16 16:24:56 +10:00
Gareth
5addabd6f6 chore: changes to get tests passing on windows 2019-08-16 14:26:39 +10:00
Gareth Jones
66fe30e9f4 chore: oh shit I changed the eslint rules 2019-08-01 16:57:32 +10:00
Martin Heidegger
a06e2cc83c chore: updated dependencies (including eslint) 2019-02-20 23:07:23 +09:00
Gareth Jones
a0749b5d01 chore: resolved conflicts manually 2018-05-30 08:26:32 +10:00
liuwenzhe
e4126b4d67 feat: Enable maxLogSize with unit 2018-05-04 11:53:09 +08:00
Gareth Jones
8f7fde9da0 fix(test): sandboxed-module -> log4js-node version 2018-02-01 07:56:49 +11:00
Gareth Jones
f1a7d57931 chore(merge): merging from master 2017-11-18 10:46:13 +11:00
Gareth Jones
8627f743ef fix(#614): bumped deps of debug, date-format, streamroller 2017-11-17 08:47:45 +11:00
Gareth Jones
906a77403d chore(lint): added linting to test files 2017-11-14 08:45:22 +11:00
Gareth Jones
2e035286d1 fix(exit): made exit listeners responsibility of caller 2017-03-20 09:04:36 +11:00
Gareth Jones
c4a6efaf0f fix(test): exit listener test fix for new shutdown functions 2017-03-20 08:47:48 +11:00
Gareth Jones
833c5a0881 chore(merge): merged in changes from master 2017-03-20 08:21:45 +11:00
hansonw
303f10a70d fix(fileAppender): Fix up shutdown functions 2017-03-15 00:41:44 -07:00
Gareth Jones
1d50b82a96 refactor: fixed a few more appenders 2017-02-07 08:53:51 +11:00
Gareth Jones
8969d13478 fix(test): fix for file test timing problem 2017-01-02 14:59:11 +11:00
Gareth Jones
9d84bddf4a fix(test): moved file appender test to tap 2016-12-29 22:57:54 +11:00