logdna / logdna-winston

LogDNA's Node.js logging module with support for Winston
MIT License
16 stars 14 forks source link

use info[Symbol(message)] instead of info.message #28

Open vladimir-krasulya2 opened 3 years ago

vladimir-krasulya2 commented 3 years ago

Why this transport is using info.message ? for example in default console transport https://github.com/winstonjs/winston/blob/master/lib/winston/transports/console.js#L54

braxtonj commented 3 years ago

Hey @vladimir-krasulya2! info[MESSAGE] (as seen in winstonjs) uses the MESSAGE primitive from triple-beam (basically a wrapper for "message") while we kept it simple and just use info.message