Open mkromann opened 1 year ago
The long logging you see is handled neither by the shopify package nor by remix, but is actually handled by the http server. RAS uses morgan
by default, and you can't configure it.
You will be able to handle this switching to a custom express server.
However, I completely agree on the color issue.
Issue summary
(1) The logging tends to get cluttered due to long routes. As a result, the logs are difficult to read, especially with the long query parameters.
(2) The footer seems unnecessary. It could be presented at the start like the Prisma instructions. Also the shortcuts are quickly learned, and they do not need to be surfaced all the time.
(3) Native Remix logging formatting is lost due the custom nature (color override etc) of this log.
@shopify/shopify-app-remix
version: "2.0.0"Example log:
Expected behavior
The logs should be clear, concise, and easy to read. Potentially, consider providing an option for condensed or summarized logging for long routes or allowing better formatting options. Maybe a way to opt-out (maybe it already exist?).
Actual behavior
The logs are too verbose, especially when dealing with long query parameters, making it challenging to quickly understand or debug.
Steps to reproduce the problem