add "logfile" option to log diagnostics to file using boost (#13931)

add some logging options

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Tobias Gloth
2026-06-04 01:28:51 -04:00
committed by GitHub
parent 58a8722a69
commit dc5d6b45de
4 changed files with 17 additions and 0 deletions

View File

@@ -9750,6 +9750,7 @@ void DynamicPrintConfig::update_values_to_printer_extruders_for_multiple_filamen
BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format(", Line %1%: can not find opt define for %2%")%__LINE__%key;
continue;
}
switch (optdef->type) {
case coStrings:
{
@@ -10846,6 +10847,12 @@ CLIMiscConfigDef::CLIMiscConfigDef()
def->cli_params = "level";
def->set_default_value(new ConfigOptionInt(1));
def = this->add("logfile", coInt);
def->label = L("Log file");
def->tooltip = L("Redirects debug logging to file.\n");
def->cli_params = "file";
def->set_default_value(new ConfigOptionString());
def = this->add("enable_timelapse", coBool);
def->label = L("Enable timelapse for print");
def->tooltip = L("If enabled, this slicing will be considered using timelapse.");