Creates a logger via the debug library whose log messages will be tagged
using the name of your project. By default, such messages will be
suppressed, but you can reveal them by setting the DEBUG environment
variable to metamask:<projectName>. You can also set this variable to
metamask:* if you want to see log messages from all MetaMask projects that
are also using this function to create their loggers.
Returns
An instance of debug.
Parameters
projectName: string
The name of your project. This should be the name of
your NPM package if you're developing one.
Creates a logger via the
debug
library whose log messages will be tagged using the name of your project. By default, such messages will be suppressed, but you can reveal them by setting theDEBUG
environment variable tometamask:<projectName>
. You can also set this variable tometamask:*
if you want to see log messages from all MetaMask projects that are also using this function to create their loggers.Returns
An instance of
debug
.