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 -l / --log-level option to all examples #396

Open
elfenpiff opened this issue Sep 25, 2024 · 1 comment · May be fixed by #474
Open

Add -l / --log-level option to all examples #396

elfenpiff opened this issue Sep 25, 2024 · 1 comment · May be fixed by #474
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@elfenpiff
Copy link
Contributor

(Code) Example Of Cumbersome API

Sometimes, a bug occurs in an example, or the example is the starting point of a user project, and then something goes wrong. It would be helpful if the user could easily increase the log level by adding a command-line option.

This should be implemented as efficiently as possible (from a lines of code view). This means that the argument parsing should only be one or two lines of additional code in the examples. The logic shall be stored in an external library that does all the logic.
This logic shall be available for all examples in all languages.

@elfenpiff elfenpiff added enhancement New feature or request good first issue Good for newcomers labels Sep 25, 2024
@elfenpiff elfenpiff mentioned this issue Sep 25, 2024
17 tasks
@elBoberido
Copy link
Member

@elfenpiff I just remember that I introduced a log_level_from_env_or(LogLevel) function in iceoryx1.

We could also do this for iceoryx2 and just set an IOX2_LOG_LEVEL=trace environment variable in out bashrc. With this, we would still have the detailed log by default and the examples would have a less noisy by default.

It would also require less code to be added to the examples

zmostafa pushed a commit to zmostafa/iceoryx2 that referenced this issue Oct 16, 2024
@zmostafa zmostafa linked a pull request Oct 16, 2024 that will close this issue
17 tasks
zmostafa pushed a commit to zmostafa/iceoryx2 that referenced this issue Oct 16, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 16, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 16, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 16, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 16, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 17, 2024
zmostafa pushed a commit to zmostafa/iceoryx2 that referenced this issue Oct 17, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 17, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 21, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 22, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 30, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Oct 30, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 2, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 2, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 2, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 7, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 7, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 7, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 7, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 7, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 8, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 8, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 8, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 8, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 11, 2024
zmostafa added a commit to zmostafa/iceoryx2 that referenced this issue Nov 12, 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 good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants