Adding logging to a file and fixing all plugins to log properly.