Add log support