I have a javascript logger function that depends on a mongoose model:
function Logger(model) { var Model = model; Logger.prototype.logError = async fun