tool: reduce copy-paste at logging wrapper.