You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/02/05 16:32:55 UTC

[GitHub] [cordova-android] chrisjdev opened a new issue #914: Cleaner Logging for Android Studio

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #914: Cleaner Logging for Android Studio

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #914: Cleaner Logging for Android Studio
URL: https://github.com/apache/cordova-android/issues/914#issuecomment-612544690
 
 
   I've reproduced this with a simple cordova app running `console.log("test");` in the web inspector, which produces the output:
   
   ```
   2020-04-11 21:44:15.521 5920-5920/io.cordova.hellocordova D/SystemWebChromeClient: : Line 1 : test
   2020-04-11 21:44:15.522 5920-5920/io.cordova.hellocordova I/chromium: [INFO:CONSOLE(1)] "test", source:  (1)
   ```
   
   In the logcat. I agree, we can probably remove the logcat print from `SystemWebChromeClient`.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] breautek closed issue #914: Cleaner Logging for Android Studio

Posted by GitBox <gi...@apache.org>.
breautek closed issue #914: Cleaner Logging for Android Studio
URL: https://github.com/apache/cordova-android/issues/914
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org