-
Notifications
You must be signed in to change notification settings - Fork 3
Add logging to Modflow 6 package #491
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
Comments
Example log messages: Initialization
Writing
I think the nicest thing (potentially) for to do this kind of logging is to use decorators, to avoid code duplication. As log levels: the "starting" logging message can be level "INFO", the ending one can be "DEBUG" |
Should the "run" method of the Simulation class have logging? (I would add it with urgency level "CRITICAL" so that it'll always show up.) |
Fixes #491 # Description adds 2 decorators that will log a message before and after executing the methods they are wrapping. # Checklist <!--- Before requesting review, please go through this checklist: --> - [X] Links to correct issue - [X] Update changelog, if changes affect users - [X] PR title starts with ``Issue #nr``, e.g. ``Issue #737`` - [X] Unit tests were added - [ ] **If feature added**: Added/extended example --------- Co-authored-by: Joeri van Engelen <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
In GitLab by @JoerivanEngelen on Jul 25, 2023, 17:41
Add logging to:
The text was updated successfully, but these errors were encountered: