Add support for capturing logging.* events, as per #33

Resolves #33, any problems let me know.