forked from ros2/ros2cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add LaunchLogger class Supports logging messages from multiple processes and modules to the screen, a common log file, or both. LaunchLogger is a singleton and when it is first instantiated a log file is created of the form 'DATETIME-launch-HOSTNAME-PID.log'. Messages sent to the screen or the log file will have the format 'TIME [LEVEL] NAME: MESSAGE'. * Add different formats for log and screen in launch logger The timestamp in the screen format is optional. * Use LoggerLevel.INFO instead of logging.INFO * Fixup 'screen' logging logic Also extends LaunchLogger interface. Signed-off-by: Michel Hidalgo <[email protected]> * Refactors launch logging. Signed-off-by: Michel Hidalgo <[email protected]> * Preconfigures launch.logging loggers. Signed-off-by: Michel Hidalgo <[email protected]> * Addresses peer review comments. - Fix style and documentation issues. - Removes dangling TODO. Signed-off-by: Michel Hidalgo <[email protected]> * style and documentation fixups Signed-off-by: William Woodall <[email protected]> * fix name shadowing (mypy complained) Signed-off-by: William Woodall <[email protected]> * Replace capfd with capsys in launch.logging tests. Signed-off-by: Michel Hidalgo <[email protected]> * Integrate LaunchLogger in launch Replacing usage of the Python logging module with the new LaunchLogger. * Integrate LaunchLogger in launch_ros Also, removed unecessary logging logic. * Clean up LaunchLogger integration with launch Signed-off-by: Michel Hidalgo <[email protected]> * Refactor launch logging integration. Signed-off-by: Michel Hidalgo <[email protected]> * Switch to non-relative launch.logging imports. Signed-off-by: Michel Hidalgo <[email protected]> * Turn ExecuteProcess output_prefix into an output_format. Signed-off-by: Michel Hidalgo <[email protected]> * Convert launch logging API names to snake case. Signed-off-by: Michel Hidalgo <[email protected]> * Minor fixes after rebase. Signed-off-by: Michel Hidalgo <[email protected]>
- Loading branch information
1 parent
7611f7b
commit 8f1ed68
Showing
15 changed files
with
832 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.