simple C example for print log macro