Streaming Logs to New relic

Hi, does anyone know how to stream log events every time a piece is executed to New Relic?
I suspect I have to add a call to New Relic in the piece of code that runs every piece, but not sure.
Any help is appreciated :grinning: