chrisjdev opened a new issue #914: Cleaner Logging for Android Studio
URL: https://github.com/apache/cordova-android/issues/914
 
 
   # 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.
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to