Use the logger instead of cout to print the header info.