add function name in log header, use class Voidify to implement LOG_IF