logging: reduce the amount of code emitted for log statements