exa-analytics / exatomic

A unified platform for theoretical and computational chemists
https://exa-analytics.github.io/exatomic
Apache License 2.0
19 stars 12 forks source link

Add logging functionality #151

Closed tjduigna closed 5 years ago

tjduigna commented 5 years ago

Largely consistent with additions made in https://github.com/exa-analytics/exa/pull/162 , this merge request intends to introduce logging functionality. The default logging configurations are copied in both repositories, but this allows to keep each independently configurable by changing handlers and levels on loggers inheriting from logging.getLogger(f'exa.{foo}') and logging.getLogger(f'exatomic.{bar}')

I also added a func_log method to the root namespace to offer similar logging behavior as with the established instance logging for when the functional approach is more appropriate. algorithms.orbital received a conversion to convert print statements to logging statements using this approach.

This is only the setup and a minimal working example. Much more work should be done for rich logging features but this lays the ground work.