a reformat, and some logging fundamentals