You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/07/11 22:56:28 UTC

git commit: [CB-4157] Console plugin does not run

Updated Branches:
  refs/heads/master 2601e6be4 -> 1e67667ca


[CB-4157] Console plugin does not run


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/1e67667c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/1e67667c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/1e67667c

Branch: refs/heads/master
Commit: 1e67667cae607827cc0db09e629560b0d4805b12
Parents: 2601e6b
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Jul 11 13:56:27 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Jul 11 13:56:27 2013 -0700

----------------------------------------------------------------------
 www/logger-startup.js | 2 +-
 www/logger.js         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/1e67667c/www/logger-startup.js
----------------------------------------------------------------------
diff --git a/www/logger-startup.js b/www/logger-startup.js
index cf4e261..d2a88c8 100644
--- a/www/logger-startup.js
+++ b/www/logger-startup.js
@@ -20,5 +20,5 @@
 */
 
 // use the native logger
-var logger = require("cordova/plugin/logger");
+var logger = require("./logger");
 logger.useConsole(true);

http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/1e67667c/www/logger.js
----------------------------------------------------------------------
diff --git a/www/logger.js b/www/logger.js
index 03a5d6b..ebe4425 100644
--- a/www/logger.js
+++ b/www/logger.js
@@ -220,7 +220,7 @@ logger.logLevel = function(level /* , ... */) {
 
     // Log using the native logger if that is enabled
     if (UseLogger) {
-        exec(null, null, "Logger", "logLevel", [level, message]);
+        exec(null, null, "Console", "logLevel", [level, message]);
     }
 
     // Log using the console if that is enabled