Add log directive