Logger factory refactoring

Please check the logger functionality before deploying. This might have broken logging as I don't get any errors but could not find the log files either :S