Added logging level to settings.
Improved logging.