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

Add documentation of log levels #93

Merged
merged 2 commits into from
May 15, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions rcl_interfaces/msg/Log.msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
##
## Severity level constants
##
## These logging levels follow the Python Standard
## https://docs.python.org/3/library/logging.html#logging-levels
## And are implemented in rcutils as well
## https://github.com/ros2/rcutils/blob/35f29850064e0c33a4063cbc947ebbfeada11dba/include/rcutils/logging.h#L164-L172
## This leaves space for other logging levels to be inserted in the middle in the future.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not only in the future but custom user defined levels.

## Since there are several other logging enumeration standard for different implementations.
dirk-thomas marked this conversation as resolved.
Show resolved Hide resolved
## Other logging implementations may need to provide level translations to match their internal implementations.
dirk-thomas marked this conversation as resolved.
Show resolved Hide resolved
##
byte DEBUG=10 #debug level
byte INFO=20 #general level
Expand Down