Added transaction functionality to Logger class