Update CDVDebug.h with better logging tools.

Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/60050cb1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/60050cb1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/60050cb1

Branch: refs/heads/master
Commit: 60050cb18f66cac21901d80489bc3864d04df6e7
Parents: 6e17087
Author: Olivier Louvignes <oliv...@mg-crea.com>
Authored: Fri Oct 5 15:19:16 2012 +0200
Committer: Andrew Grieve <agri...@chromium.org>
Committed: Fri Oct 5 10:17:47 2012 -0400

----------------------------------------------------------------------
 CordovaLib/Classes/CDVDebug.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/60050cb1/CordovaLib/Classes/CDVDebug.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVDebug.h b/CordovaLib/Classes/CDVDebug.h
index 8d77f59..4a0d9f9 100644
--- a/CordovaLib/Classes/CDVDebug.h
+++ b/CordovaLib/Classes/CDVDebug.h
@@ -18,8 +18,8 @@
  */
 
 #ifdef DEBUG
-    #define DLog(...) NSLog(__VA_ARGS__)
+    #define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, 
__LINE__, ##__VA_ARGS__)
 #else
-    #define DLog(...) /* */
+    #define DLog(...)
 #endif
-#define ALog(...) NSLog(__VA_ARGS__)
+#define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, 
__LINE__, ##__VA_ARGS__)

Reply via email to