Skip to content

Commit 448c188

Browse files
committed
Added more documentation for usage of the setCallback and how to reset logging to console
1 parent 5384843 commit 448c188

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 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+
*/
262268
template <typename Functor>
263269
void
264270
setCallback(Functor&& callback)

0 commit comments

Comments
 (0)