fix(logging): cap file logs with configurable maxFileBytes

Co-authored-by: Xinhua Gu <562450+xinhuagu@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-02-22 17:58:51 +01:00
parent 795db98f6a
commit 8cc744ef1f
7 changed files with 154 additions and 3 deletions

View File

@@ -190,6 +190,7 @@ export const OpenClawSchema = z
])
.optional(),
file: z.string().optional(),
maxFileBytes: z.number().int().positive().optional(),
consoleLevel: z
.union([
z.literal("silent"),