Skip to content

Commit 5fb3286

Browse files
authored
set maxLogSize (#14)
1 parent a3707d2 commit 5fb3286

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ async function wait(ms: number) {
2121
async function main() {
2222
configure({
2323
appenders: {
24-
cheese: { type: "file", filename: "cheese.log" },
24+
cheese: {
25+
type: "file",
26+
filename: "cheese.log",
27+
maxLogSize: "10M",
28+
backups: 5,
29+
},
2530
console: { type: "console" },
2631
},
2732
categories: {

0 commit comments

Comments
 (0)