Skip to content

[console] How can I redirect the log output? #5589

Open
@themightyoarfish

Description

@themightyoarfish

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions