[ 
https://issues.apache.org/jira/browse/CB-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265944#comment-13265944
 ] 

Shazron Abdullah commented on CB-611:
-------------------------------------

Unofficially, in iOS there is already different logging levels: 
https://github.com/apache/incubator-cordova-js/blob/master/lib/ios/plugin/ios/console.js

console.warn, console.error, console.log.

To set the log level, you would set this somewhere in your code to one of these 
levels:
https://github.com/apache/incubator-cordova-js/blob/master/lib/ios/plugin/ios/console.js#L13

{code}
console.setLevel(console.ERROR_LEVEL);
{code}
                
> Logging levels
> --------------
>
>                 Key: CB-611
>                 URL: https://issues.apache.org/jira/browse/CB-611
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: Master
>         Environment: Run Cordova/PhoneGap with Cordova-SQLitePlugin and some 
> other plugins
>            Reporter: Chris Brody
>            Assignee: Shazron Abdullah
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> I got a pull request on my Cordova-SQLitePlugin with a special logging 
> function that is only logging when built as a debug version. I believe this 
> issue should be solved in the core with a log function that is only logging 
> when built as a debug version. Ideally a logging facility with multiple log 
> levels. Please forgive me if this has already been done somewhere.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to