Added user defined logs and related test cases