Add docstring to configure_logging() function
Remove trailing whitespace
Switch to old-style % formatting for logging statements