mjhoptics / ray-optics

geometric ray tracing for optical systems
BSD 3-Clause "New" or "Revised" License
263 stars 54 forks source link

Use local loggers to make messages externally filterable #143

Closed dominikonysz closed 5 months ago

dominikonysz commented 5 months ago

Hey, referring to #138 I have just replaced all the calls to the global logging module with local loggers. This way it should now be possible to change the logging level of all of these loggers externally with e.g.:

logging.getLogger('rayoptics').setLevel(logging.ERROR)

In terms of logging, everything should have stayed the same, but I wasn't really able to run through all the things or run the GUI on my current setup. So it would be great if you could do a quick check beforehand to make sure everything is working as it should.

Cheers Dominik Onyszkiewicz