How I can log all nodejs messages showed on console to syslog in ubuntu?

Viewed 1382

I am new to nodejs and syslog functionality. The message generated by nodejs such as error, or info are not getting logged in syslog. I want to log all the message generated by nodejs and displayed on the terminal to syslog. For this what changes I need to do in syslog.conf file? Note: I dont want to use Winston, loggly or log4s

2 Answers
Related