Create logging.pm

Original file from forked repository