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

Improve PyPSATopo log messages logic/filtering #6

Closed
ricnogfer opened this issue Sep 11, 2023 · 1 comment
Closed

Improve PyPSATopo log messages logic/filtering #6

ricnogfer opened this issue Sep 11, 2023 · 1 comment

Comments

@ricnogfer
Copy link
Owner

PyPSATopo allows generating log messages while processing a network (by setting parameter quiet=False when using PyPSATopo API or passing parameter --no-quiet when using PyPSATopo through a CLI). Log messages are grouped in three types, namely:

  1. INFO (represented as [INF] in the beginning of the message).
  2. WARNING (represented as [WAR] in the beginning of the message).
  3. ERROR (represented as [ERR] in the beginning of the message).

To improve log messages logic/filtering in PyPSATopo, the following should be implemented:

  1. Rename parameter quiet as log in the API (this tells PyPSATopo to display any type log messages).
  2. Rename parameter --no-quiet as --log in the CLI (this tells PyPSATopo to display any type log messages).
  3. Add parameters log_info, log_warning and log_error in the API (this tells PyPSATopo to only display the type of log messages that the parameter corresponds to).
  4. Add parameters --log-info, --log--warning and log--error in the API (this tells PyPSATopo to only display the type of log messages that the parameter corresponds to).
@ricnogfer
Copy link
Owner Author

This issue is solved through c98b77e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant