working on logs
adding tests
complete unit test for logOpertion