fixed SLog example code