Refactors logger and cleans up log levels