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

Logging to syslog ? #7

Open
dirk-thomas opened this issue May 21, 2018 · 2 comments
Open

Logging to syslog ? #7

dirk-thomas opened this issue May 21, 2018 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@dirk-thomas
Copy link
Member

From @asmodehn on April 24, 2017 7:54

I couldn't find any way to log into syslog from ROS log (C++ or python).
Neither in code nor in the documentation...

I was wondering what were the different steps needed, in order to implement such a feature, in a way that doesn't change the current behaviour, but just provide the additional functionality to any user who might need it ( when moving from developing a ROS system in a lab, to releasing it onto production on a robot running far away...)

I might be able to do the effort of implementation, but I'd likely need some guidance...
Thanks for any pointers !

Copied from original issue: ros/ros_comm#1036

@dirk-thomas dirk-thomas added the enhancement New feature or request label May 21, 2018
@dirk-thomas
Copy link
Member Author

The rosconsole package has different backends (see https://github.com/ros/ros_comm/tree/lunar-devel/tools/rosconsole/src/rosconsole/impl). The backend can only be selected at compile time though (https://github.com/ros/ros_comm/blob/a0f47897e4a5b5bc35ddb59a8637973e60f6bf23/tools/rosconsole/CMakeLists.txt#L13). While that might be enough for your use case it is not very convenient.

@dirk-thomas
Copy link
Member Author

From @asmodehn on May 2, 2017 6:25

Thanks for the pointer for this.

As far as I understand now, to implement a flexible logging system that can log to screen, file, or syslog, while being easily configurable, to decide what logger goes where, I ll need :

  • C++ : log4cxx + using named loggers + extra configuration to add syslog appender(s) to meaningful loggers
  • Python : logging + using named loggers + modified configuration to add syslog handler(s) to meaningful loggers

Correct ?

I realize some of these are still in development, but I ll do what I can to keep the ball rolling on logging features, until we get there...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant