You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2023. It is now read-only.
I don't know if this repo is still accepting feature requests, or if it will ultimately be replaced by the new Storefront API, but as we're still using this one I wanted to present this idea here.
It would be very useful to add a custom Logger to be used throughout the code when logging stuff, which can have configurable controls for things like what level (if any) to log in Production. Vue Storefront has something like this already, so it should be somewhat translatable.
As a note, we recently discovered that vuestorefront-api is logging a lot of info, including the JSON encoded order data when placing an order, even in production. This was a security and privacy concern, so for now we have just removed all of these console.logs from the core code. In the short-term, something to easily configure this would be ideal, allowing us to basically disable all of these logs in a production environment.
In the long-term, it could be nice to have the option to use our own logger. Like how we now have the ability to set our own Image or Product processors for example. In our specific situation, we need to implement winston logger with a specific format so that it can be synchronized with a Kibana instance where we handle all of our log files internally. Being able to set a logger processor in the config like we can for products would make this a nice and easy change, and would allow us to set our own formatting, configuration options, etc...
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I don't know if this repo is still accepting feature requests, or if it will ultimately be replaced by the new Storefront API, but as we're still using this one I wanted to present this idea here.
It would be very useful to add a custom Logger to be used throughout the code when logging stuff, which can have configurable controls for things like what level (if any) to log in Production. Vue Storefront has something like this already, so it should be somewhat translatable.
As a note, we recently discovered that vuestorefront-api is logging a lot of info, including the JSON encoded order data when placing an order, even in production. This was a security and privacy concern, so for now we have just removed all of these
console.log
s from the core code. In the short-term, something to easily configure this would be ideal, allowing us to basically disable all of these logs in a production environment.In the long-term, it could be nice to have the option to use our own logger. Like how we now have the ability to set our own Image or Product processors for example. In our specific situation, we need to implement winston logger with a specific format so that it can be synchronized with a Kibana instance where we handle all of our log files internally. Being able to set a logger processor in the config like we can for products would make this a nice and easy change, and would allow us to set our own formatting, configuration options, etc...
The text was updated successfully, but these errors were encountered: