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 logging structure #30

Merged
merged 2 commits into from Dec 18, 2023
Merged

Add logging structure #30

merged 2 commits into from Dec 18, 2023

Conversation

cissieAB
Copy link
Collaborator

@cissieAB cissieAB commented Dec 18, 2023

Address issue #23. Updated the argparser and the submodules.

Usage: rtdp [-h] [-v] [--log_file LOG_FILE] [--log_level {debug,info,warning,error,critical}] [config_file]

rtdp: JLab's streaming readout RealTime Development and testing Platform.

positional arguments:
  config_file           path to your YAML configuration file

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  --log_file LOG_FILE   log file name
  --log_level {debug,info,warning,error,critical}
                        log level: debug, info, warning, error, critical

Github page: https://github.com/JeffersonLab/SRO-RTDP

Updates:

  • Add to arguments log_file and log_level to argparse.
  • If not specified, the application would log to rtdp.log. Logs of previous runs would not be overwritten.
  • Log level is configurable. By default it's "debug".

Part of the logging file:

2023-12-18 16:30:00,605 - root - INFO - Start application rtdp
2023-12-18 16:30:00,615 - rtdp_config_parser - INFO - Parsed the yaml configuration file at ../java/config_demo_ersap.yml
2023-12-18 16:30:00,620 - rtdp_dash_cyto - INFO - Cytoscape elements created
2023-12-18 16:30:08,883 - rtdp_dash_cyto - DEBUG - On config flowchart, node-0 selected
2023-12-18 16:30:12,961 - rtdp_dash_cyto - DEBUG - On config flowchart, node-8 selected

@cissieAB cissieAB added the enhancement New feature or request label Dec 18, 2023
@cissieAB cissieAB self-assigned this Dec 18, 2023
@cissieAB cissieAB linked an issue Dec 18, 2023 that may be closed by this pull request
@cissieAB cissieAB merged commit 9959ab0 into main Dec 18, 2023
@cissieAB cissieAB deleted the cissie_logging branch December 18, 2023 21:57
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

Successfully merging this pull request may close these issues.

Init logging structure
1 participant