Sitecore / jss

Software development kit for JavaScript developers building web applications with Sitecore Experience Platform
https://jss.sitecore.com
Apache License 2.0
261 stars 275 forks source link

Configurable Loglevel #915

Closed monkey-ldb closed 1 year ago

monkey-ldb commented 2 years ago

Is your feature request related to a problem? Please describe.

I only want to log error messages, no info/warn, but I can only configure debug=true/false. There seems no other way to pass this parameter to the http proxy framework, which is used. https://github.com/Sitecore/jss/blob/af8d48cf53ab1547d8e0566a78ab7fbfad7c54f0/packages/sitecore-jss-proxy/src/index.ts#L556

Describe the solution you'd like

config parameter to pass the expected log level

Notes

Would be good if this feature will be added also to older versions, like 18.0

ambrauer commented 2 years ago

Hi @monkey-ldb. This is a great suggestion. I've added this to our backlog to prioritize.

We also gladly accept PRs if you're willing. Check the contributing guide as it has had recent updates and we'll be happy to merge it in.