Wrote class to take care of logging

Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>