-
Notifications
You must be signed in to change notification settings - Fork 145
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 <michel@ekumenlabs.com> * Refactors launch logging. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * Preconfigures launch.logging loggers. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * Addresses peer review comments. - Fix style and documentation issues. - Removes dangling TODO. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * style and documentation fixups Signed-off-by: William Woodall <william@osrfoundation.org> * fix name shadowing (mypy complained) Signed-off-by: William Woodall <william@osrfoundation.org> * Replace capfd with capsys in launch.logging tests. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * 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 <michel@ekumenlabs.com> * Refactor launch logging integration. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * Switch to non-relative launch.logging imports. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * Turn ExecuteProcess output_prefix into an output_format. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * Convert launch logging API names to snake case. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * Minor fixes after rebase. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
- 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.