winstonjs / winston-loggly

A Loggly transport for winston
http://github.com/indexzero/winston-loggly
MIT License
85 stars 110 forks source link

Serialize Error-typed metadata argument #29

Open yetithefoot opened 9 years ago

yetithefoot commented 9 years ago

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);
ernoaapa commented 8 years ago

Yes please! Or some other workaround I would appreciate.

indexzero commented 8 years ago

Using the latest winston should fix this.