summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Guzzo <andrea.guzzo@booking.com>2013-07-11 15:21:27 (GMT)
committer Andrea Guzzo <andrea.guzzo@booking.com>2013-07-11 15:21:27 (GMT)
commit861201085d57c3bcc8a21bc553056e8bc0f1ccf0 (patch)
tree893b0199974846ac5749dce51ae05f1bcaf81bb6
parent97deef17a64bacf8bb4e187192022bacba9b79b1 (diff)
restored the output console ... it's kind of an hack for now
will be refactored later
-rw-r--r--JMXGlobals.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/JMXGlobals.h b/JMXGlobals.h
index a86e7cc..335c4f6 100644
--- a/JMXGlobals.h
+++ b/JMXGlobals.h
@@ -9,6 +9,12 @@
// Generic syslog based logging
+@protocol JMXApplication
+
+- (void)logMessage:(NSString *)message, ...;
+
+@end
+
#ifndef __JMXGLOBALS_H__
#define __JMXGLOBALS_H__
@@ -35,9 +41,9 @@
#define VERBOSE_DEFAULT LOG_WARNING //!< \brief default verbose level (syslog LOG_* value)
-//#define NSLog(__format, args...) do { [(JMXAppDelegate *)[[NSApplication sharedApplication] delegate]\
-// logMessage:__format, ## args ];\
-// } while (0)
+#define NSLog(__format, args...) do { [(id<JMXApplication>)[[NSApplication sharedApplication] delegate]\
+ logMessage:__format, ## args ];\
+ } while (0)
#define NSDebug(__format, args...) do {\
if (verbose >= LOG_DEBUG) {\