mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
Update the codes to 01.01.00.10 for the formal release
1. first formal version of macos 2. add the bambu networking plugin install logic 3. auto compute the wipe volume when filament change 4. add the logic of wiping into support 5. refine the GUI layout and icons, improve the gui apperance in lots of small places 6. serveral improve to support 7. support AMS auto-mapping 8. disable lots of unstable features: such as params table, media file download, HMS 9. fix serveral kinds of bugs 10. update the document of building 11. ...
This commit is contained in:
parent
e1528e4299
commit
e9e4d75877
267 changed files with 10326 additions and 32228 deletions
|
@ -11,6 +11,10 @@
|
|||
#include "Time.hpp"
|
||||
#include "libslic3r.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include "MacUtils.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#include <psapi.h>
|
||||
|
@ -292,12 +296,21 @@ namespace keywords = boost::log::keywords;
|
|||
namespace attrs = boost::log::attributes;
|
||||
void set_log_path_and_level(const std::string& file, unsigned int level)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
//currently on old macos, the boost::log::add_file_log will crash
|
||||
//TODO: need to be fixed
|
||||
if (!is_macos_support_boost_add_file_log()) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
//BBS log file at C:\\Users\\[yourname]\\AppData\\Roaming\\BambuStudio\\log\\[log_filename].log
|
||||
auto log_folder = boost::filesystem::path(g_data_dir) / "log";
|
||||
if (!boost::filesystem::exists(log_folder)) {
|
||||
boost::filesystem::create_directory(log_folder);
|
||||
}
|
||||
auto full_path = (log_folder / file).make_preferred();
|
||||
|
||||
g_log_sink = boost::log::add_file_log(
|
||||
keywords::file_name = full_path.string() + ".%N",
|
||||
keywords::rotation_size = 100 * 1024 * 1024,
|
||||
|
@ -309,6 +322,7 @@ void set_log_path_and_level(const std::string& file, unsigned int level)
|
|||
<< ":" << expr::smessage
|
||||
)
|
||||
);
|
||||
|
||||
logging::add_common_attributes();
|
||||
|
||||
set_logging_level(level);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue