Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 746959d

Browse files
committedMar 25, 2025·
Added more documentation for usage of the setCallback and how to reset logging to console
1 parent 5384843 commit 746959d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎common/include/pcl/console/print.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ namespace pcl
259259
std::function<void(const LogRecord&)> logcallback;
260260
};
261261

262+
/**
263+
* @brief Sets a callable in the Logger instance, which is called whenever a printout has 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+
*/
262268
template <typename Functor>
263269
void
264270
setCallback(Functor&& callback)

0 commit comments

Comments
 (0)
Please sign in to comment.