can anyone show some lines of code for logging purpose..