Adding example code how to log to file