
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2020 08:26 AM
I use console.warn() everywhere in client scripts. It really helps debugging, especially because .warn() stands out so wonderfully.
Example:
I'm not a fan of the that I keep getting though.
I would use jslog() , but then I lose the color and stand out of console.warn().
Is there anything like a jswarn() ? Or, is there a way to log to the browser's console natively from SN that I could give it some highlighting to stand out?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2021 10:45 AM
If you don't mind having extra comments in your code, you can disable the ESLint rule responsible for those warnings.
Disable for one line:
/* eslint-disable-next-line no-console */
Disable for multiple lines (and then re-enable, if desired):
/* eslint-disable no-console */
... many console statements here
/* eslint-enable */
Here is a screenshot of the results:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2020 06:23 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2020 06:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2020 09:14 AM
if that has helped can you close this thread by marking it as helpful/answered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2021 10:45 AM
If you don't mind having extra comments in your code, you can disable the ESLint rule responsible for those warnings.
Disable for one line:
/* eslint-disable-next-line no-console */
Disable for multiple lines (and then re-enable, if desired):
/* eslint-disable no-console */
... many console statements here
/* eslint-enable */
Here is a screenshot of the results:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2021 08:53 AM
Brilliant!
I'm marking this as the correct answer because it does exactly what I need... to stop those darn orange circles!