Logging handler with MongoDB as backend.