Moved logging functions to tools/logger.py