Conditionally add logger middleware #1546
Unanswered
chemmanouilidis
asked this question in
Q&A
Replies: 1 comment 1 reply
-
middleware: getDefaultMiddleware => {
// your code here
} Personally I'd just recommend to use the DevTools instead of the logger though - for me, that spam makes it impossible to see actually important info on the console. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
What is the most efficient/readable way of adding logger based on process_env variable? I tried to come up with some workarounds but they were either really nasty to read or using the deprecated getDefaultMiddleware() function.
Beta Was this translation helpful? Give feedback.
All reactions