mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
Refactor startup/logging service wiring and related test/config updates
This commit is contained in:
@@ -75,6 +75,9 @@ export const DEFAULT_CONFIG: ResolvedConfig = {
|
||||
enabled: "auto",
|
||||
port: 6677,
|
||||
},
|
||||
logging: {
|
||||
level: "info",
|
||||
},
|
||||
texthooker: {
|
||||
openBrowser: true,
|
||||
},
|
||||
@@ -276,6 +279,13 @@ export const RUNTIME_OPTION_REGISTRY: RuntimeOptionRegistryEntry[] = [
|
||||
];
|
||||
|
||||
export const CONFIG_OPTION_REGISTRY: ConfigOptionRegistryEntry[] = [
|
||||
{
|
||||
path: "logging.level",
|
||||
kind: "enum",
|
||||
enumValues: ["debug", "info", "warn", "error"],
|
||||
defaultValue: DEFAULT_CONFIG.logging.level,
|
||||
description: "Minimum log level for runtime logging.",
|
||||
},
|
||||
{
|
||||
path: "websocket.enabled",
|
||||
kind: "enum",
|
||||
@@ -460,6 +470,14 @@ export const CONFIG_TEMPLATE_SECTIONS: ConfigTemplateSection[] = [
|
||||
],
|
||||
key: "websocket",
|
||||
},
|
||||
{
|
||||
title: "Logging",
|
||||
description: [
|
||||
"Controls logging verbosity.",
|
||||
"Set to debug for full runtime diagnostics.",
|
||||
],
|
||||
key: "logging",
|
||||
},
|
||||
{
|
||||
title: "AnkiConnect Integration",
|
||||
description: ["Automatic Anki updates and media generation options."],
|
||||
|
||||
Reference in New Issue
Block a user