Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Serialize Error-typed metadata argument #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yetithefoot
Copy link

Serialize Error-typed metadata arguments more correctly to save meaningful fields.

I regularly pass an Error object as my meta object.
Code like this now will be more correctly saved to Loggly.

var err = new Error('This is error');
winston.error('Error happened', err);

Serialize Error-typed metadata arguments more correctly to save meaningful fields.
@ernoaapa
Copy link

ernoaapa commented Oct 6, 2015

Yes please! Or some other workaround I would appreciate.

@indexzero
Copy link
Member

Using the latest winston should fix this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants