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
Since @hv0905 mentioned that console.log is really a nice way for developers to diagnostic issues. I suggest that we can write it more to allow debugging in our staging env.
While when we are doing this approach, I don't suggest to write the following code everywhere:
What do you suggest us to do?
Since @hv0905 mentioned that
console.log
is really a nice way for developers to diagnostic issues. I suggest that we can write it more to allow debugging in our staging env.While when we are doing this approach, I don't suggest to write the following code everywhere:
But instead, we gonna create a log service.
And implement it with different ways. Like:
And use
ConsoleLogger
in staging env andDummyLogger
in prod env.The text was updated successfully, but these errors were encountered: