adonisjs / logger

AdonisJS Logger built on top of pino
https://docs.adonisjs.com/guides/logger
MIT License
23 stars 9 forks source link

fix: corrected misspelling of destination #68

Closed mikesaintsg closed 3 months ago

mikesaintsg commented 4 months ago

❓ Type of change

📚 Description

A quick fix, "destination" was misspelled as "desination", to correctly match the Pino config options

thetutlage commented 4 months ago

Seems like its going to be a breaking change. So we should actually keep the property name with typo, deprecate it and then re-map it internally.

mikesaintsg commented 4 months ago

How are deprecations being handled? Should an Error be thrown or some sort of console log?

RomainLanz commented 4 months ago

How are deprecations being handled? Should an Error be thrown or some sort of console log?

You should add a comment on top of the property. Example: https://github.com/adonisjs/auth/blob/a3b87aabde87ec7c1953955ed1fb8c437582d21d/index.ts#L29