adobe-photoshop / generator-core

Core Node.js library for Adobe Photoshop CC's Generator extensibility layer
MIT License
692 stars 97 forks source link

Allow plugins to set their own logging level #337

Closed rog closed 8 years ago

rog commented 8 years ago

It's posible to disable the logger from my plugin without editing this line from the generator-code: https://github.com/adobe-photoshop/generator-core/blob/master/lib/generator.js#L28

mcilroyc commented 8 years ago

This is not currently supported, but is a reasonable request. I'd be interested to know how this is impacting you though. I'm going to change the name of the issue to reflect the request, let me know if you disagree @rogr.

rog commented 8 years ago

Thank you @mcilroyc, and yeah, I think this is a better name for this issue.

This is my case problem:

I'm using node-progress to show a progress bar of the assets I'm generating, but the logger from the generator-core makes that the progress bar doesn't show in one line. Also I don't want to show logs to end-users.

I will see if I can do a PR.