Logging can now be done with config file.