log macro simplified