Added Logging.hook() method