Comments (7)
Maybe it will be better to base the implementation in Python native logging module...
I have some experience with it, in case you need help
from esmvaltool.
I agree with @jvegasbsc using standard python logging is probably best. This for instance also nicely integrates with testing frameworks, etc.
from esmvaltool.
Also see #16.
from esmvaltool.
As discussed during the meeting on 2017-08-29, I have added standard library logging to the main.py file (and the interface_scripts/auxiliary.py file to demonstrate use in a module) starting from the REFACTORING_parser/orchestrator files. You can see it here:
https://github.com/bouweandela/ESMValTool/tree/REFACTORING_parser/orchestrator
in this commit: 0568d5a
Configuration of the various loggers is done in logging.yml, there are at the moment 3 loggers defined:
- logging to console
- summary log to file for users
- detailed log to file for developers
Much more configuration is possible and I did not have time to fully test the code, so this an example for those who are interested and can be a starting point for discussion on the kind of logging functionality that is needed.
from esmvaltool.
Only setting we need is "verbosity" in the config file determining the console verbosity. Bouwe will implement in a branch.
from esmvaltool.
To avoid confusion, I've added a new variable "log_level" to the config.ini file, meant to replace "verbosity" once we have completely switched to the new logger. If this is not the desired behaviour, we can of course also keep "verbosity" and make a translation table, e.g.
verbosity | log_level |
---|---|
0 | warning |
1 | info |
>1 | debug |
from esmvaltool.
from esmvaltool.
Related Issues (20)
- Fixing global attributes for recipe_martin18grl HOT 1
- Documentation build is failing HOT 2
- CMORize tool fails for RAWOBS if directory structure does not include Tier2/Tier3 HOT 1
- Warnings during full development installation HOT 2
- Consider using sphinx-autoapi HOT 1
- New recipe and diagnostic for calculating Lamb Weathertypes HOT 2
- data format command broken for HadCRUT4: too many months? HOT 1
- Replace the MO-specific URL in the RTW with a public URL
- Investigate slurm `--ntasks` and ESMValTool's `MAX_PARALLEL_TASKS` for RTW HOT 1
- Add "How to add a site" to RTW documentation
- Missing data for `recipe_bock20jgr_fig_8-10.yml` HOT 2
- Missing data on DKRZ for `recipe_check_obs.yml` HOT 3
- Diagnostic failure for `recipe_wenzel16jclim.yml` on `v2.11.0rc1` HOT 2
- Update the list of broken recipes for `v2.11.0` HOT 2
- Add the `recipe_ocean_amoc.yml` recipe to the RTW
- Update `precommit` rev to fix `precommit` installation error
- Add code owners for the RTW
- Include verbose output from `compare.py` in RTW
- Fix failing tests after CMIP6 climate patterns merge HOT 4
- Broken R recipes from v2.11.0 due to use of R v4.3.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esmvaltool.