Added log level config.
More work on logging.