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

Use standardised log output with timestamp for all output #143

Open
ZetaTwo opened this issue Apr 27, 2023 · 2 comments
Open

Use standardised log output with timestamp for all output #143

ZetaTwo opened this issue Apr 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ZetaTwo
Copy link
Collaborator

ZetaTwo commented Apr 27, 2023

Currently when running a scan, the program outputs lines on the form
"Inspecting project [project id]"
while for example errors use a full logging mechanism which includes a timestamp. This is annoying if you have a long running scan and you want to know how it is progressing along and when the last message was logged. Since all the actual results of the scan is saved in a separate structured format, I would propose that all other output should be considered logging and use the proper logging facilities.

@ZetaTwo ZetaTwo added the enhancement New feature or request label Apr 27, 2023
@natea123
Copy link
Contributor

Hi @ZetaTwo would you be able to elaborate on "use the proper logging facilities"?

For example would the following structure be sufficient:
"2023-06-19 13:00:08 Inspecting project [project id1]"
"2023-06-19 13:04:28 Inspecting project [project id2]"

@ZetaTwo
Copy link
Collaborator Author

ZetaTwo commented Jun 19, 2023

I mean that we should use the logging library instead of just print().

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

No branches or pull requests

2 participants