amplify-js icon indicating copy to clipboard operation
amplify-js copied to clipboard

ConsoleLogger: bind console.debug for logger.debug

Open sjdeak opened this issue 2 years ago • 5 comments

Description of changes

Issue #, if available

  • Current behavior: When using consoleLogger.debug, console.log is used under the hood.
  • Issue: this causes chrome devtool's log filtering function not work. During development I usually turned on all log level in ConsoleLogger and use Chrome devtool to filter logs.

CleanShot 2023-12-08 at 22 16 09

  • Solution: bind console.debug

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

sjdeak avatar Dec 08 '23 14:12 sjdeak

Hey, @sjdeak 👋. Apologies for the delayed response on this PR, but thank you for your contribution! We're going to be testing this PR and considering it for merging, so we'll follow up with any questions or updates very soon. Thank you for your patience.

cwomack avatar Jan 30 '24 19:01 cwomack

@ashwinkumar6 Let me know your suggestion to this change, willing to contribute.

sjdeak avatar Feb 07 '24 02:02 sjdeak

To unblock CI could you please add in these changes as well.

ashwinkumar6 avatar Feb 09 '24 00:02 ashwinkumar6

Thanks! It's traditional festival in my country will soon response once when I'm back to work.

sjdeak avatar Feb 09 '24 04:02 sjdeak

Hey @sjdeak, We're performing some additional validations from our side, Thank you for your patience.

ashwinkumar6 avatar Feb 15 '24 22:02 ashwinkumar6

Hi @ashwinkumar6 @ashika112 , has addressed comments and fixed the failed test case(also verified locally), please check, thanks.

sjdeak avatar Feb 19 '24 13:02 sjdeak

@sjdeak Thanks, I think we would also need to update the bundle size a bit, we can take it forward from here

ashwinkumar6 avatar Feb 20 '24 00:02 ashwinkumar6

@sjdeak Thanks, I think we would also need to update the bundle size a bit, we can take it forward from here

Hi @ashwinkumar6 also just updated the bundle-size in my side, , let's see the CI result 😉, but please take over the rest work and feel free to make modification.

sjdeak avatar Feb 20 '24 00:02 sjdeak

Hi @ashwinkumar6 could we merge the PR in next week? Really looking forward to see a cleaner console log when using Amplify, thanks!

sjdeak avatar Feb 24 '24 05:02 sjdeak

Thanks for your patience @sjdeak. We're exploring making this update an opt-in feature to avoid any breaking changes, For example we could introduce a property to toggle for users to enable at their discretion. I'm currently away and will be back in a week. Once I return, I'll work on finalizing this approach.

ashwinkumar6 avatar Feb 25 '24 06:02 ashwinkumar6

Understood. thank you

sjdeak avatar Feb 26 '24 10:02 sjdeak

Hi @sjdeak, This has been released in 6.0.21

ashwinkumar6 avatar Mar 19 '24 23:03 ashwinkumar6

Hi @sjdeak,

This has been released in 6.0.21

Great, @ashwinkumar6 thank you very much ! it is such a great experience work with you team.

sjdeak avatar Mar 19 '24 23:03 sjdeak