Closed sven-petersen closed 5 years ago
I am also interested in the response to this issue as I have hit it in my attempts to perform automated testing. Thank you
Thank you for your report. This problem was caused by a change in winstons transport api. We fixed our implementation in version 5.2.6.
Hi all,
we are using winston for logging in our backend application on SAP Cloud Platform - Cloud Foundry in the following Versions:
Based on your example for winston custom messages I have the following minimal example:
However the problem is, that the "cf-nodejs-logging-support"-transport will only log the very first message. After that no more messages are logged. To validate that this issue is not a general issue of winston I have added the standard console transport. The console transport works as expected and logs all messages. Output from the console:
As you can see after the first messages only the
warn: log me please
are printed whereas the JSON-logs from this library here are missing. Somehow the logMessage-method of the transport (winston-transport.js#L12) is only called once.