Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15747 anikendra 1
<!---
2
    Licensed to the Apache Software Foundation (ASF) under one
3
    or more contributor license agreements.  See the NOTICE file
4
    distributed with this work for additional information
5
    regarding copyright ownership.  The ASF licenses this file
6
    to you under the Apache License, Version 2.0 (the
7
    "License"); you may not use this file except in compliance
8
    with the License.  You may obtain a copy of the License at
9
 
10
      http://www.apache.org/licenses/LICENSE-2.0
11
 
12
    Unless required by applicable law or agreed to in writing,
13
    software distributed under the License is distributed on an
14
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
    KIND, either express or implied.  See the License for the
16
    specific language governing permissions and limitations
17
    under the License.
18
-->
19
 
20
# org.apache.cordova.console
21
 
22
This plugin is meant to ensure that console.log() is as useful as it can be.
23
It adds additional function for iOS, Ubuntu, Windows Phone 8, and Windows 8. If
24
you are happy with how console.log() works for you, then you probably
25
don't need this plugin.
26
 
27
This plugin defines a global `console` object.
28
 
29
Although the object is in the global scope, features provided by this plugin
30
are not available until after the `deviceready` event.
31
 
32
    document.addEventListener("deviceready", onDeviceReady, false);
33
    function onDeviceReady() {
34
        console.log("console.log works well");
35
    }
36
 
37
## Installation
38
 
39
    cordova plugin add org.apache.cordova.console
40
 
41
### Android Quirks
42
 
43
On some platforms other than Android, console.log() will act on multiple
44
arguments, such as console.log("1", "2", "3"). However, Android will act only
45
on the first argument. Subsequent arguments to console.log() will be ignored.
46
This plugin is not the cause of that, it is a limitation of Android itself.