added logger factory for logging to Mongo