Console to Webhook

I was wondering if there was a way to have console send requests (basically send the data in console) to a webhook in real-time. For example if an action was logged to console it would fire the webhook (Basically sends it to a webhook).

You can use custom logger, like winston and create custom middleware