pyenergyplus / eppy3000

E+ Scripting Language using the epJSON file format
Mozilla Public License 2.0
7 stars 3 forks source link

EPSchema dbm cache should have logging #113

Closed santoshphilip closed 3 weeks ago

santoshphilip commented 1 month ago

Develop a debug log for the cache - to make sure that it is working correctly

write to log on following events:

The cache is a dict or a Munch. Add the log functionality to__setattr__ and __ getattr__

santoshphilip commented 1 month ago

The intent to have the log confirm that the cache is working correctly.

In the long run, this can be a basis for eppy3000 having a built-in logging system that can log other events too, that can be turned on or off. Either partially or fully.

Not sure how this can be useful. Maybe on long running servers. I am not seeing a use case for this. But it is worth putting in place.??

santoshphilip commented 3 weeks ago

The cache is fully tested using logs in tests/test_dbmcache