feat(common): configure file log level
Allow operators to control how much diagnostic information is retained in file logs independently from live console output. Document the new startup setting and add regression coverage for its default behavior, runtime independence, and unsupported configurations.
This commit is contained in:
1 parent
e5f256f4dc
commit
227a62f2ad
6 files changed
+236
-27
No files matched your search
@@ -249,7 +249,8 @@ export interface ApiClient {
|
||||
list(limit?: number): Promise<LogEntry[]>;
|
||||
/** Subscribe to the SSE log stream. Returns a disposer. */
|
||||
stream(options: LogsStreamOptions): () => void;
|
||||
/** Current console / subscriber level. File output is always debug. */
|
||||
/** Current console / subscriber level. File logging level is set via
|
||||
* SNOWLUMA_LOG_FILE_LEVEL (default: debug), independent of this method. */
|
||||
getLevel(): Promise<{ level: LogLevel; levels: LogLevel[] }>;
|
||||
/** Change the console / subscriber level at runtime. No restart needed. */
|
||||
setLevel(level: LogLevel): Promise<{ level: LogLevel; levels: LogLevel[] }>;
|
||||
|
||||
Reference in new issue
Block a user