Add IF_LOG to more logging statements.

Evaluating arguments which call toChars() or toPrettyChars() are much more expensive then checking Logger::enabled().