Skip to content

Logging #68

@t-kramer

Description

@t-kramer

@urwahah, I’ve set up a simple logger for the app (refer to utils/logging_config.py) that outputs to the console or terminal. I believe it’s particularly useful for the calculations in energy.py. Whenever you have a moment, please review the current implementation of the calculations and try to identify any potential weak points in the workflow that we should address with a logging statement.

I suggest we adhere to this convention:

Log Levels

Level Value Use For
DEBUG 10 Detailed info for debugging (session IDs, state changes)
INFO 20 Normal operations (file saved, calculation complete)
WARNING 30 Unexpected but recoverable (bad data, frequency mismatch)
ERROR 40 Something failed (file load error, calculation crash)
CRITICAL 50 App can't continue

It's okay if we focus on energy.py for now, that's where most of the "magic" happens and most errors occur.

@praftery

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions