We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5384843 commit 448c188Copy full SHA for 448c188
common/include/pcl/console/print.h
@@ -259,6 +259,12 @@ namespace pcl
259
std::function<void(const LogRecord&)> logcallback;
260
};
261
262
+ /**
263
+ * @brief Sets a callable in the Logger instance, which is called whenever a printout is occured
264
+ * @tparam Functor matching the definition: std::function<void(const LogRecord&)>
265
+ * @param callback the std::function or lambda to be called
266
+ * @note Its possible to reset the logging to console by setting the callback to a nullptr
267
+ */
268
template <typename Functor>
269
void
270
setCallback(Functor&& callback)
0 commit comments