Code for user defined logs

Modified existing logger to accept user defined logs... Accordingly also modified the test cases