token logging to mongo