So is there any node in Node-RED which We can use for logging ?
There are indeed nodes for logging. Please check the Flows page.
There are also several examples of custom logging, one of which I've already shared.
But there are potentially lots - which is why I suggested that the OP checks the flows site: