Files
sn0w12-ComfyUI-Sn0w-Scripts/web/loggingLevel.js
T
2024-04-25 15:16:11 +02:00

27 lines
628 B
JavaScript

import { app } from "../../../scripts/app.js";
const id = "sn0w.LoggingLevel";
const settingDefinition = {
id,
name: "[Sn0w] Logging Level",
type: "combo",
defaultValue: "ERRORS_ONLY",
options: [
{ text: "Errors Only", value: "ERRORS_ONLY" },
{ text: "Warnings and Above", value: "WARNINGS_ABOVE" },
{ text: "Informational and Above", value: "INFO_ABOVE" },
{ text: "All Logs", value: "ALL" }
],
};
let setting;
const extension = {
name: id,
init() {
setting = app.ui.settings.addSetting(settingDefinition);
},
};
app.registerExtension(extension);