-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Logged event types should be configurable #30
Comments
Also it would be useful to skip logging of state modifications, if them happens too often inside one action (for example, if action triggers more than 20 state modifications, stop logging them and only count, print count after action finished). |
@andykog Looks good to me. 👍 Top level filtering is enough for me. I primarily want to filter by Currently I use mobx-logger (authored by me) but I'm happy to drop it if DevTools serve my needs. Sometimes it would also be useful to further filter out some reactions, because if you use In that case it would be handy to filter out reactions based on rows so you just see However a more sophisticated solution would be to filter by actual component type instead of a string name to prevent global namespace clashes. But I fear that's currently impossible because the components type of the reaction is not propagated via spy events? cc @mweststrate |
looks useful indeed! it is currently not possible to get the component via the spy event in a reliable way indeed, although some cross referencing with the |
Published as |
Hi,
it would be very handy if we could configure which particular event types gets logged. Currently every event gets logged by the spy listener which often results in huge amounts of console logs.
In most cases I would just like to see
action
logs per default and then enable more logs (e.g.reactions
) on demand. This would be particular useful for ReactNative where you cannot rely on other devTools.It would also be helpful to output timestamps for each log statements.
Regards.
PS: I think especially people coming from Redux are used to workflows like that, see Redux Logger: https://github.com/evgenyrodionov/redux-logger
The text was updated successfully, but these errors were encountered: