moving logging to __main__.py