You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/07/10 17:41:26 UTC

[1/2] git commit: [CB-3698] Enable console by default on iOS.

Updated Branches:
  refs/heads/master 53ebe9048 -> 2601e6be4


[CB-3698] Enable console by default on iOS.

This is how it behaved before the break-out.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/f71711bd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/f71711bd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/f71711bd

Branch: refs/heads/master
Commit: f71711bd8a055f12660b5db907a972f79b7ad725
Parents: 53ebe90
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Jul 10 11:13:21 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Jul 10 11:13:21 2013 -0400

----------------------------------------------------------------------
 plugin.xml            |  4 ++++
 www/logger-startup.js | 24 ++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/f71711bd/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 2893ea4..fc557e2 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -22,6 +22,10 @@
 			<param name="ios-package" value="CDVLogger"/>
 		</feature>
         </config-file>
+
+        <js-module src="www/logger-startup.js" name="startup">
+            <runs />
+        </js-module>
         
 	<header-file src="src/ios/CDVLogger.h" />
 	<source-file src="src/ios/CDVLogger.m" />

http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/f71711bd/www/logger-startup.js
----------------------------------------------------------------------
diff --git a/www/logger-startup.js b/www/logger-startup.js
new file mode 100644
index 0000000..cf4e261
--- /dev/null
+++ b/www/logger-startup.js
@@ -0,0 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+// use the native logger
+var logger = require("cordova/plugin/logger");
+logger.useConsole(true);


[2/2] git commit: [CB-4143] Don't add console modules for Android.

Posted by ag...@apache.org.
[CB-4143] Don't add console modules for Android.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/2601e6be
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/2601e6be
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/2601e6be

Branch: refs/heads/master
Commit: 2601e6be4b7a509bc63594c81700ded7f911d84b
Parents: f71711b
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Jul 10 11:15:10 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Jul 10 11:15:10 2013 -0400

----------------------------------------------------------------------
 plugin.xml | 42 +++++++++++++++++++++++++++++-------------
 1 file changed, 29 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/2601e6be/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index fc557e2..758e5b9 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -3,33 +3,33 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
            id="org.apache.cordova.core.console"
       version="0.1.0">
-	
+
     <name>Console</name>
 
-    <js-module src="www/console-via-logger.js" name="console">
-        <clobbers target="console" />
-    </js-module>
-    
-    <js-module src="www/logger.js" name="logger">
-        <clobbers target="cordova.logger" />
-    </js-module>
-    
     <!-- ios -->
     <platform name="ios">
-        
+
         <config-file target="config.xml" parent="/*">
 		<feature name="Console">
 			<param name="ios-package" value="CDVLogger"/>
 		</feature>
         </config-file>
 
+        <js-module src="www/console-via-logger.js" name="console">
+            <clobbers target="console" />
+        </js-module>
+
+        <js-module src="www/logger.js" name="logger">
+            <clobbers target="cordova.logger" />
+        </js-module>
+
         <js-module src="www/logger-startup.js" name="startup">
             <runs />
         </js-module>
-        
+
 	<header-file src="src/ios/CDVLogger.h" />
 	<source-file src="src/ios/CDVLogger.m" />
-        
+
     </platform>
 
     <!-- wp7 -->
@@ -40,6 +40,14 @@
             </feature>
         </config-file>
 
+        <js-module src="www/console-via-logger.js" name="console">
+            <clobbers target="console" />
+        </js-module>
+
+        <js-module src="www/logger.js" name="logger">
+            <clobbers target="cordova.logger" />
+        </js-module>
+
         <source-file src="src/wp/DebugConsole.cs" />
     </platform>
 
@@ -51,7 +59,15 @@
             </feature>
         </config-file>
 
+        <js-module src="www/console-via-logger.js" name="console">
+            <clobbers target="console" />
+        </js-module>
+
+        <js-module src="www/logger.js" name="logger">
+            <clobbers target="cordova.logger" />
+        </js-module>
+
         <source-file src="src/wp/DebugConsole.cs" />
     </platform>
-    
+
 </plugin>