Log request body using http-logger


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?


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