[ 
https://issues.apache.org/jira/browse/CB-8015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aaron Ruß updated CB-8015:
--------------------------
    Description: 
Messages that are logged to the console via 
{{CordovaChromeClient.onConsoleMessage(ConsoleMessage)}}  always get written to 
the JavaScript console with DEBUG level.

Since LogCat is capable of formatting messages according to their log-level, it 
would improve readability of the LogCat output considerably, if 
{{CordovaChromeClient.onConsoleMessage(ConsoleMessage)}} would print the 
message with the actual log-level of the message, i.e. 
{{ConsoleMessage.messageLevel()}}.

Example solution see
https://github.com/mmig/cordova-android/commit/506ab013ba3c72e979176ff00a894ed38052009a

  was:
Messages that are logged to the console via 
{{CordovaChromeClient.onConsoleMessage(ConsoleMessage)}}  always get written to 
the JavaScript console with DEBUG level.

Since LogCat is capable of formatting messages according to their log-level, it 
would improve readability of the LogCat output considerably, if 
{{CordovaChromeClient.onConsoleMessage(ConsoleMessage)}} would print the 
message with the actual log-level of the message, i.e. 
{{ConsoleMessage.messageLevel()}}.

see 
https://github.com/mmig/cordova-android/commit/506ab013ba3c72e979176ff00a894ed38052009a


> improve readability of console output (LogCat)
> ----------------------------------------------
>
>                 Key: CB-8015
>                 URL: https://issues.apache.org/jira/browse/CB-8015
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Aaron Ruß
>            Priority: Minor
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Messages that are logged to the console via 
> {{CordovaChromeClient.onConsoleMessage(ConsoleMessage)}}  always get written 
> to the JavaScript console with DEBUG level.
> Since LogCat is capable of formatting messages according to their log-level, 
> it would improve readability of the LogCat output considerably, if 
> {{CordovaChromeClient.onConsoleMessage(ConsoleMessage)}} would print the 
> message with the actual log-level of the message, i.e. 
> {{ConsoleMessage.messageLevel()}}.
> Example solution see
> https://github.com/mmig/cordova-android/commit/506ab013ba3c72e979176ff00a894ed38052009a



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to