🚀 Feature Request
Add CLI parameter --console-log-levels=<levels...> to restrict console logs output to client.
List of possible levels (taken from ConsoleMessage.type() return type):
log,
debug,
info,
error,
warning,
dir,
dirxml,
table,
trace,
clear,
startGroup,
startGroupCollapsed,
endGroup,
assert,
profile,
profileEnd
One special "level" is none to disable all levels.
Example
--console-log-levels=warning,error enables only warning and error logs.
--console-log-levels=none disables all console logs.
- If option is not set, then all logs are enabled by default.
Motivation
This could be helpful in cases if web page is too verbose in console and this consumes a lot of tokens of LLM.