Setup logger from a flag