You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the answer currently is "you can't", as macros in common/include/pcl/console/print.h always log to stdout. It would be extremely useful to globally redirect logging, or rather configure log handlers so any issues can be written to the application log file to troubleshoot.
Context
I get warnings only on stdout and thus cannot associate them with other stuff happening in my running application.
Expected behavior
A functionality to handle log messages in application code.
Current Behavior
Log always pollutes cout.
Describe the solution you'd like
E.g. a logging library providing this functionality is used.
Describe alternatives you've considered
Can't see any.
The text was updated successfully, but these errors were encountered:
@themightyoarfish I would want to avoid depending on a logging library if possible. Adding new dependencies is always a big pain (need to check the license, need to make sure the dependency is available on all systems and in all package managers, have to be sure that the dependency will be maintained in the future, if there are bugs in the dependency we often have to deal with them (as we experienced several times with VTK)).
Hello!
Has such a feature been developed? It would be nice indeed to be able to intercept logs emitted by PCL, especially in GUI applications that use the library without any console attached.
I think the answer currently is "you can't", as macros in
common/include/pcl/console/print.h
always log to stdout. It would be extremely useful to globally redirect logging, or rather configure log handlers so any issues can be written to the application log file to troubleshoot.Context
I get warnings only on stdout and thus cannot associate them with other stuff happening in my running application.
Expected behavior
A functionality to handle log messages in application code.
Current Behavior
Log always pollutes
cout
.Describe the solution you'd like
E.g. a logging library providing this functionality is used.
Describe alternatives you've considered
Can't see any.
The text was updated successfully, but these errors were encountered: