Not sure what `logger` is.  If we can just use `logger: console.log` that would be a good start for the user.  (The full answer is in the middleware API of mojito of course.)