candrholdings / winston-slackbotuser

Winston transport for logging as a Slack bot user
MIT License
2 stars 0 forks source link

Support multiple transports for slack by allowing setting the name #3

Open cypris75 opened 7 years ago

cypris75 commented 7 years ago

The name of the transport is hard-coded. Therefore it is not possible to add multiple transports with slack, e.g. to log different levels into different channels.

this.name = 'slackBotUser';

It should be possible to set this in options, e.g.

this.name = options.name || 'slackBotUser';