Microgateway logging

I am new to microgateway and I want to log all details of request and response in a file also I want to redirect all console.log present in custom nodejs plugin into same file with message id of request.

I have tried through config.yml file but still it is not able to log all details of custom plugin.

so any suggestion/help would be appreciated.

0 2 434
2 REPLIES 2

Hi @Prasad Walke,

Instead of using console.log have you tried using the logger.info() method?

Here's a sample plugin which will log request/response payload details.

https://github.com/mecclesgoogle/edgemicro-log-payload

Mark

robinm
New Member