Write to a file using middleware JS

You can hook up Sentry at the moment for the logger, we use this library:

It has support for a bunch of external loggers. You could extend Tyk to use another hook (that’s how we support Sentry).