Log request body using http-logger


#1

How can I log request body using @adonisjs/http-logger. Currently I see that log method accepts url, method, statusCode, startedAt and code arguments. Do I need to create my own Logger Driver for this? Could someone at least provide a direction in which I should continue my research?


#2

I don’t think logging request body is a good idea, since it may have sensitive information too.

You can simply fork the repo, make changes and install your fork from Github