netsim_error_logger function

Handle the Logging of Traceback and Dumping of Frames on Error