Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Sending JSON is broken #34
Comments
|
Hi @wyqydsyq, Please give me some time to finish my ongoing issues. I'll try to reproduce once I get some time. Thanks for reporting. |
|
I can't reproduce this. Json option works for me fine. |
|
I've encountered the same issue - it seems that JSON cannot be sent if no message string is provided.
If JSON is the only parameter, it seems to be ignored |
|
Ah that makes sense as to why some couldn't reproduce, I think in my case I didn't specify a Seems there's some kind of internal check/processing happening on |
|
Working on this today, I’ve found that Loggly also has a “feature” which drops fields from the parser if their type had changed (eg from string to object) which might also be causing the issue |
|
works in version 3 |
Setting the
jsonoption totrueresults in my log never actually reaching loggly, no error gets thrown and the Winston transport isn't emitting it'serrorevent either, so it causes logging to silently fail.This issue can be worked-around by not specifying
json: truein the options, and manuallyJSON.stringifying the log body e.g:Instead of:
Use:
The text was updated successfully, but these errors were encountered: