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

Introduce KaraboLogger #546

Open
Lukas113 opened this issue Feb 26, 2024 · 0 comments
Open

Introduce KaraboLogger #546

Lukas113 opened this issue Feb 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Lukas113
Copy link
Collaborator

We have a lot of print statements in Karabo. However, this is not very flexible and easy to use. The following are just a set of use-cases to show how limited print-statements are:

  • Control verbosity levels (e.g. lvl 1-3)
  • Not have to check verbose each time before a print
  • Control prints in case of parallel processes (e.g. print messages only on main-device or on each device)
  • Set output stream (stderr, stdout) & handler for print & warnings
  • Beeing able to control local and global verbosity (e.g. suppress temporary karabo-prints using the with-statement)

These is just an illustration how Karabo could benefit from a logger. And implementing a logger with basic functionality (just replacing the pring-statements with a console-logger) without having to care about specific use-cases should be easy and fast to implement.

@Lukas113 Lukas113 added the enhancement New feature or request label Feb 26, 2024
@mpluess mpluess self-assigned this Mar 14, 2024
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