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

@@ -1357,6 +1357,10 @@ int CLI::run(int argc, char **argv)
else {
set_logging_level(2);
}
const ConfigOptionString* opt_logfile = m_config.opt<ConfigOptionString>("logfile");
if (opt_logfile) {
set_logging_file(opt_logfile->value);
}
global_begin_time = (long long)Slic3r::Utils::get_current_time_utc();
BOOST_LOG_TRIVIAL(warning) << boost::format("cli mode, Current OrcaSlicer Version %1%")%SoftFever_VERSION;