when i use console.log (or process.stdout.write directly), my syslog 
message is being prepended with system(?) information.

e.g.
console.log({"level":"INFO","source":"Socket Service","message":"socket 
connected from 127.0.0.1","data":""});

=>

syslog:
{"rev":"8248314","rel":"20150701124055","pid":7831} : 
{"level":"INFO","source":"Socket Service","message":"socket connected from 
127.0.0.1:46579","data":""}
{"rev":"8248314","rel":"20150701124055","pid":7831} :

vs

terminal console output:
{"level":"INFO","source":"Socket Service","message":"socket connected from 
127.0.0.1","data":""}


my problem is that when this log is sent to loggly, the loggly parsing 
process fails due to invalid json - from the 
{"rev":"8248314","rel":"20150701124055","pid":7831} : 

i thought it might be a configuration issue on ubuntu/rsyslog but then i 
noticed that the logs are not being altered from our java applications. so 
this leads me to thinking it is something with node.

any clues at to what is prepending the log messages and how i can prevent 
this from happening using rsyslog?

thanks in advance for any help...

cheers,
scott

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/f6dc0bef-88cb-431a-8908-c15366fd7860%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to