feat: Add log_level option in LuCI and use configured value for sing-box logging

This commit is contained in:
Andrey Petelin
2025-12-10 17:58:22 +05:00
parent 96f6def701
commit aa8f2cef41
4 changed files with 22 additions and 3 deletions

View File

@@ -378,6 +378,24 @@ function createSettingsContent(section) {
return true;
};
o = section.option(
form.ListValue,
"log_level",
_("Log Level"),
_(
"Select the log level for sing-box",
),
);
o.value("trace", "Trace");
o.value("debug", "Debug");
o.value("info", "Info");
o.value("warn", "Warn");
o.value("error", "Error");
o.value("fatal", "Fatal");
o.value("panic", "Panic");
o.default = "warn";
o.rmempty = false;
o = section.option(
form.Flag,
"exclude_ntp",