marota / ExpertOp4Grid

Expert System agent to operate a power grid
https://expertop4grid.readthedocs.io/en/latest
Mozilla Public License 2.0
7 stars 2 forks source link

Get rid of all the prints everywhere and using the "logging" module #38

Open BDonnot opened 3 years ago

BDonnot commented 3 years ago

Printing to get some information about the behaviour of the agent is not a suitable to way to do it.

It completely overload the output shell (nothing can be read), it does not allow for any control (which log level you want) and it is lost if the shell / notebook cell / etc. is deleted.

It would be nice to get rid of all these prints and use the "logging" module instead. And maybe add a key word argument to say which logging level you want (typically: DEBUG - everything is printed- INFO, WARNING or ERROR)