Revert "Remove SetLogger from C++ header"

This reverts commit 08a4874adf.
This commit is contained in:
Caelan Sayler
2025-03-12 22:53:46 +00:00
committed by Caelan
parent 0bb8161bd7
commit 088a43bf9e

View File

@@ -240,6 +240,14 @@ public:
return VelopackApp();
};
/**
* Attach a custom callback to receive log messages from Velopack.
*/
VelopackApp& SetLogger(vpkc_log_callback_t cbInstall, void* p_user_data) {
vpkc_set_logger(cbInstall, p_user_data);
return *this;
};
/**
* Set whether to automatically apply downloaded updates on startup. This is ON by default.
*/