I'm currently using serverless-http ~2.5.0 in an existing project. By default it seems it logs every request start and end, along with a big JSON containing the request information (headers, JWT, etc). I want to either be able to customize this logging or to disable entirely to be able to use another solution like Pino. An example:
How can I achieve this? The documentation is not so clear about this. It seems I can bass an options object to the serverless handler but I cannot see an option to customize or disable logging.
I'm currently using serverless-http ~2.5.0 in an existing project. By default it seems it logs every request start and end, along with a big JSON containing the request information (headers, JWT, etc). I want to either be able to customize this logging or to disable entirely to be able to use another solution like Pino. An example:
How can I achieve this? The documentation is not so clear about this. It seems I can bass an options object to the serverless handler but I cannot see an option to customize or disable logging.