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

feat: Add env. variable to control verbosity of the logger #48

Merged
merged 4 commits into from
Jan 17, 2023

Conversation

Higgcz
Copy link
Contributor

@Higgcz Higgcz commented Dec 22, 2022

This PR adds an env. variable EVOTORCH_VERBOSE_LEVEL to control the default verbosity of the EvoTorch Logger.

Supported values and their logging levels counterparts are:

  • 0 sets logging.WARNING
  • 1 sets logging.INFO (default)
  • 2 sets logging.DEBUG

TODO

  • Add docs

@Higgcz Higgcz added the enhancement New feature or request label Dec 22, 2022
@Higgcz Higgcz self-assigned this Dec 22, 2022
@Higgcz Higgcz added this to the 0.4.0 milestone Dec 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2022

Codecov Report

Merging #48 (f4b3980) into master (92cd04c) will increase coverage by 0.05%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
+ Coverage   78.13%   78.18%   +0.05%     
==========================================
  Files          43       43              
  Lines        6307     6308       +1     
==========================================
+ Hits         4928     4932       +4     
+ Misses       1379     1376       -3     
Impacted Files Coverage Δ
src/evotorch/tools/misc.py 86.27% <0.00%> (+0.49%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Higgcz Higgcz force-pushed the feature/default-logger-config branch from 4bf75f5 to f4b3980 Compare January 2, 2023 14:41
Higgcz and others added 4 commits January 17, 2023 13:40
With this commit, the initialization procedure
of EvoTorch will assign the standard `logging`
library of Python a temporary name
(`_py_evotorch`). This way, the namespace
`evotorch.logging` will not be overriden.
@Higgcz Higgcz force-pushed the feature/default-logger-config branch from f4b3980 to 0213ee0 Compare January 17, 2023 12:40
@Higgcz Higgcz marked this pull request as ready for review January 17, 2023 12:40
@Higgcz Higgcz merged commit d2f6c47 into master Jan 17, 2023
@Higgcz Higgcz deleted the feature/default-logger-config branch January 17, 2023 12:45
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.

3 participants