UBCSailbot / sailbot_workspace

UBC Sailbot's monorepo
https://ubcsailbot.github.io/sailbot_workspace/main/
Apache License 2.0
5 stars 2 forks source link

Create docs page Reference/Logging #381

Open DFriend01 opened 1 year ago

DFriend01 commented 1 year ago

Purpose

Logging can mean the difference between knowing exactly what is happening in an application and having no idea what is going on. Creating good logs in our software, particularly with ROS, will be essential to debugging our application and providing context for each ROS node. The purpose of this new page is to provide guidance for some best practices when logging with ROS.

Page Tree

nav:
  ...
  - Reference:
    - Robot Operating System:
      - Logging:
        - Logging Best Practices: logging_best_practices.md
        - Logging with ROS: logging_with_ros.md

Topics

Logging Best Practices

This page will contain information on the best practices for logging information in general (not necessarily with ROS). It will cover topics like logging levels, what metadata to include to help with finding information and parsing, logging in a human-readable and a machine-readable (easy to parse) way, diagnostic information, and other topics of the like.

Logging with ROS

This page will contain information on the best practices when logging with ROS. This will cover more specific information like logging static vs dynamic information, how often to log information and how much to log such that the user is not overwhelmed, and logging in the presence of multiple nodes and real time information. It will also quickly cover the logging tool that ROS provides.

Resources

Logging Best Practices

Logging with ROS

Logging Libraries

patrick-5546 commented 1 year ago

We should probably talk about these as well. image From PATH June 8 meetings notes.

patrick-5546 commented 11 months ago

In Python, ROS just builds on the Python logger: https://www.logicmonitor.com/blog/python-logging-levels-explained#logging-levels

patrick-5546 commented 7 months ago

From https://ubcsailbot.atlassian.net/wiki/spaces/prjt22/pages/1936949250/2023W2+Software-Wide+Meeting+Notes

image