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
react-router generates log lines like this: GET / 200 - - 6.331 ms. I'd like to prepend these lines with log level, i.e. [INFO] GET / 200 - - 6.331 ms. Is there a way to do this other than duplicating react-router's serve/dist/cli.js and replacing the "tiny" morgan log invocation with my own invocation? I'd rather not have to replace the whole implementation to change one tiny detail. Perhaps react-router could support a user-provided log format?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
react-router generates log lines like this:
GET / 200 - - 6.331 ms. I'd like to prepend these lines with log level, i.e.[INFO] GET / 200 - - 6.331 ms. Is there a way to do this other than duplicating react-router's serve/dist/cli.js and replacing the "tiny" morgan log invocation with my own invocation? I'd rather not have to replace the whole implementation to change one tiny detail. Perhaps react-router could support a user-provided log format?Beta Was this translation helpful? Give feedback.
All reactions