Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn to stderr when "enhanced" console logging methods called without log level arg #2

Open
prometheas opened this issue Apr 18, 2018 · 0 comments
Labels

Comments

@prometheas
Copy link
Owner

prometheas commented Apr 18, 2018

After the console object has been "enhanced", a warning message should be written to stderr every time that any of the logging methods (see below) are called without a first "log level" string argument.

// bad
console.log('a single string');
console.log('two', 'strings');
console.log('several stings also', 'warn', 'unless the first arg is a log level');

// good
console.log('info', 'some message');
console.warn('some message');
console.error('another', 'message');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant