-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Newly generate codemod doesn't come with logger.
I dug into ember-codemods, looking for a standard way to log errors and warnings.
I found several ways to achieve it:
-
Use pure nodejs
https://github.com/ember-codemods/ember-data-codemod/blob/master/transforms/globals-to-ember-data-imports/index.js#L6 -
Use winston
https://github.com/ember-codemods/ember-angle-brackets-codemod/blob/master/lib/logger.js -
Use console with SilentError pattern
ember-codemods/tagless-ember-components-codemod@491cfa2
What's your recommendation on this? Do you think a default logger should be generate too?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels