You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only print a console.log message once to the Android Studio Logcat
Motivation Behind Feature
Cleaner logs allow for easier searching (no need to divide by 2 to figure out how many times something has printed), and easier readability while it's running.
Feature Description
I've been mildly annoyed by each console.log message being duplicated in the logs displayed by Logcat and Run tabs in Android Studio for a while. Today, I noticed it's coming from from SystemWebChromeClient.java, onConsoleMessage(). I found that I can enable just one or the other by either only return the super call, or modified to return true instead of the super call. I was hoping it would optionally be controlled by a config item, assuming there's customers for each type of log message. Or maybe no one needs both messages and it can be updated to only log one or the other.
Alternatives or Workarounds
I've heard of some people using a custom regex filter to get to cleaner logs, or using Chrome's debugger.
The text was updated successfully, but these errors were encountered:
Feature Request
Only print a console.log message once to the Android Studio Logcat
Motivation Behind Feature
Cleaner logs allow for easier searching (no need to divide by 2 to figure out how many times something has printed), and easier readability while it's running.
Feature Description
I've been mildly annoyed by each console.log message being duplicated in the logs displayed by Logcat and Run tabs in Android Studio for a while. Today, I noticed it's coming from from SystemWebChromeClient.java, onConsoleMessage(). I found that I can enable just one or the other by either only return the super call, or modified to return true instead of the super call. I was hoping it would optionally be controlled by a config item, assuming there's customers for each type of log message. Or maybe no one needs both messages and it can be updated to only log one or the other.
Alternatives or Workarounds
I've heard of some people using a custom regex filter to get to cleaner logs, or using Chrome's debugger.
The text was updated successfully, but these errors were encountered: