Simple logging utility for MongoDB