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
I'm glad @ThomasGHenry that you consider this helpful. Sorry for the late reply 😅
As of now, arguments can be logged only in the context of catch clause or member expression catch.
You are welcome to submit the needed changes that will allow logging arguments for other use cases.
Before going ahead with the implementation, some parts that need to be taken into consideration:
the ability to configure how arguments are logged (similar options as we have for the errors)
the ability to configure where we want to have arguments logged (maybe pattern matching? , function matching? ). This will allow adding args only when we want.
the ability to configure at the log level. Maybe for verbose logging, we do not want arguments at all.
some way to filter data from the arguments, this most probably will be in the responsibility of the logger function used, but if we can do something that we can do ... we should think about it.
Those are the things that I can think of right now, if there are other points to take into consideration please add.
I'm loving the babel auto logger. It's super helpful. I'm not seeing how to log the arguments for non-catch block calls. Is that possible? Thanks!
The text was updated successfully, but these errors were encountered: