raven logging middleware for the book logging framework