mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 01:06:14 +00:00
fix(logging): cap file logs with configurable maxFileBytes
Co-authored-by: Xinhua Gu <562450+xinhuagu@users.noreply.github.com>
This commit is contained in:
@@ -142,6 +142,8 @@ export type SessionMaintenanceConfig = {
|
||||
export type LoggingConfig = {
|
||||
level?: "silent" | "fatal" | "error" | "warn" | "info" | "debug" | "trace";
|
||||
file?: string;
|
||||
/** Maximum size of a single log file in bytes before writes are suppressed. Default: 500 MB. */
|
||||
maxFileBytes?: number;
|
||||
consoleLevel?: "silent" | "fatal" | "error" | "warn" | "info" | "debug" | "trace";
|
||||
consoleStyle?: "pretty" | "compact" | "json";
|
||||
/** Redact sensitive tokens in tool summaries. Default: "tools". */
|
||||
|
||||
Reference in New Issue
Block a user