Skip to content

Establish console / logger method convention. #217

@grypez

Description

@grypez

A catch all issue for the discussion of this topic moving forward. There are many aliases of console.log; which should be used and when?

Considerations

  • Does MetaMask have a convention already established?
  • Sometimes we want to use console messages during development, but do not want these messages to make it into the repo. Prior work has used console.debug for such messages, with the presence of console.debug messages in a PR indicating that these messages should have been cleaned up before submission.
  • @sirtimid notes that in chrome the console.debug alias specifically keeps messages hidden unless the log is viewed at the highest verbosity (VERBOSE).

Prior conversations

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions