Updated logger.py.