Add information about logging macros to the tutorial.

Closes #5699.