Coder Social home page Coder Social logo

Comments (7)

jvegreg avatar jvegreg commented on August 18, 2024

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.

nielsdrost avatar nielsdrost commented on August 18, 2024

I agree with @jvegasbsc using standard python logging is probably best. This for instance also nicely integrates with testing frameworks, etc.

from esmvaltool.

nielsdrost avatar nielsdrost commented on August 18, 2024

Also see #16.

from esmvaltool.

bouweandela avatar bouweandela commented on August 18, 2024

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.

nielsdrost avatar nielsdrost commented on August 18, 2024

Only setting we need is "verbosity" in the config file determining the console verbosity. Bouwe will implement in a branch.

from esmvaltool.

bouweandela avatar bouweandela commented on August 18, 2024

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.

valeriupredoi avatar valeriupredoi commented on August 18, 2024

from esmvaltool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.