How to stream logs to Elastic APM with elastic-apm-node?

I'm running a nestjs application, and already have a custom logger.
I wanna correlate the log. How should I do?
I searched docs, could not find sample code or api doc.

Hi @Chen_Jiang,

the log correlation is performed using certain id fields. This log correlation documentation should explain it. Let us know if that helps.

Thank you for your response. I will try that. but I got a more urgent issue, posted here
could you give me some advice on that?