Hide warning messages in the console window

The Chrome console window is full of warning messages that I like to hide. Can I hide warning logs? I want to show only my own logs, for example console.log ('mymessage');

This is what the console window pane looks like:

enter image description here

+9
source share
4 answers

First of all: you can hide all warnings and show only the output console.logif you use Microsoft Edge. There are a couple of icons in the console representing various levels of log output that you can use - error, warning, and information. If you just want to hide the warnings, you can simply turn off the warning icon.

, Firefox, , .

, , , ( ) :

Chrome ( Chrome). . (.. , ), , , . error.

, error. , .

, :

console.error('mymessage');

, , , . console.log .

console.error console.log , , console.error , .

, - , , , , . , , , . .

: , , , . , , , -, - . , , , , .

. , Chrome / . , , , .

+1

enter image description here

, .

. , .

ctrl + click, .

+7

Chrome. (Verbose, Info, Warnings, Errors)! ( : 60.0.3112.90)

" " .

Screenshot of Console in Chrome

+5

. . , console.log, .

But in general. I think you want to click on the "Information" option as shown below to just get console.log messagesscreenshot showing console 'info' selection

0
source

Source: https://habr.com/ru/post/1677363/


All Articles