Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added optional print_fcn argument to rfsmpp.gen_dbgcolor #1

Merged

Conversation

meyerj
Copy link
Member

@meyerj meyerj commented Nov 20, 2014

This allows to redirect the colorized debug output to the Orocos RTT logger.

The dbgcolor(...) function has been split into dbgcolorize(...) that only returns the colorized string and dbgcolor(...) which prints the output of dbgcolorize.

Usage example:

fsm.dbg=rfsmpp.gen_dbgcolor("rfsm-rtt-example",
                 { STATE_ENTER=true, STATE_EXIT=true},
                 false,
                 function(...) rtt.logl('Debug', ...) end)

@meyerj meyerj force-pushed the added-print-fcn-argument-to-gen_dbgcolor branch from 0d11b0d to 2b866b5 Compare February 3, 2015 10:44
This allows to redirect the colorized debug output to the Orocos RTT logger or any other custom logging function.
The `dbgcolor(...)` function has been split into `dbgcolorize(...)` that only returns the colorized string and
`dbgcolor(...)` which prints the output of `dbgcolorize`.

Usage example:
```lua
"fsm.dbg=rfsmpp.gen_dbgcolor("rfsm-rtt-example",
                 { STATE_ENTER=true, STATE_EXIT=true},
                 false,
                 function(...) rtt.logl('Debug', ...) end)
```
@meyerj meyerj force-pushed the added-print-fcn-argument-to-gen_dbgcolor branch from 2b866b5 to a417a9c Compare February 3, 2015 10:45
@meyerj
Copy link
Member Author

meyerj commented Sep 22, 2016

A long time ago...
@smits, do you think we can merge this? It would allow us to add the rFSM output to the log files.

@meyerj meyerj merged commit 1a54883 into orocos:master May 2, 2017
@meyerj meyerj deleted the added-print-fcn-argument-to-gen_dbgcolor branch September 24, 2020 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant