Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable morgan output in remix server #41

Closed
kentcdodds opened this issue Nov 6, 2020 · 3 comments
Closed

Option to disable morgan output in remix server #41

kentcdodds opened this issue Nov 6, 2020 · 3 comments

Comments

@kentcdodds
Copy link
Member

The morgan output for the remix server makes it difficult for me to find my own logging output:

image

I already see all of these requests in my network tab. It's just noise for me. Could we get an option to disable the remix server morgan output?

I know that I could start the remix server in a separate tab or just silence the output, but then that would hide much-needed error messages.

@mjackson
Copy link
Member

Could you just redirect stdout to /dev/null for now? You will still see error messages on stderr.

@kentcdodds
Copy link
Member Author

Yup, that's a fine temporary workaround :) Thanks.

@cdock1029
Copy link

cdock1029 commented Dec 2, 2020

Good article describing some approaches for node / express logging to be configurable (express already setup this way) with environment var, and strategies of separation between app, library and cli logs.. as well as enabling configurable output based on environment..local/prod/CI

https://www.twilio.com/blog/guide-node-js-logging

Turning on/off, filtering logs then can be done through

DEBUG=express:*,remix:* yarn dev

The assorted pino libraries seem useful in this regard

@remix-run remix-run locked and limited conversation to collaborators Apr 20, 2022
@chaance chaance converted this issue into discussion #2935 Apr 20, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

4 participants