Skip to content

question: How to capture api response body for logging purpose in @Middleware({type: 'after'}) #1479

Open
@faizanEnbd

Description

@faizanEnbd

Hi Everyone,

I have tried different ways to capture logs in @Middleware({type: 'after'}) but I was not able to access the response body which is being sent from the api response.

It tried with res.on('finish'), global middleware in app.ts file. but still I am not able to capture the api response body.

Can anyone help me with this issue, what I am missing here.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions