Added a log listener that will store log entries to MongoDB