Add `class::method` to logging messages. Refs #8898.