We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello Is logging of objects/json supported? Winston allows to log something like this:
winston.log('info', 'Test Log Message', { anything: 'This is metadata' })
but I don't see any logs into loggly unless I pass only string as parameter. So if error is a JSON object, this will not be logged:
logger.error 'Error creating order', error
unless I explicitly call .toString() on error object.
The text was updated successfully, but these errors were encountered:
+1 on this. I'm running into this issue as well.
Sorry, something went wrong.
Vote for that
Stupid question: have you set { json: true } in the options (cf. https://github.com/nodejitsu/node-loggly#logging-json-objects) ?
{ json: true }
@pcothenet: setting { json: true } works (and I changed the configuration in that way) but it will change also the output of the log
No branches or pull requests
Hello
Is logging of objects/json supported?
Winston allows to log something like this:
winston.log('info', 'Test Log Message', { anything: 'This is metadata' })
but I don't see any logs into loggly unless I pass only string as parameter. So if error is a JSON object, this will not be logged:
logger.error 'Error creating order', error
unless I explicitly call .toString() on error object.
The text was updated successfully, but these errors were encountered: