Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef LOGGEROBJC_H
00026 #define LOGGEROBJC_H
00027
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045
00046 #include "Logger.h"
00047
00093 #define LoggerObjC_LogEvent(logger, priority, keyword, subkeyword, text, ...) \
00094 { \
00095 NSString* the_string = [[NSString alloc] initWithFormat:text, __VA_ARGS__]; \
00096 int bytes_written = Logger_LogEventNoFormat(logger, priority, keyword, subkeyword, [the_string UTF8String]); \
00097 [the_string release]; \
00098 return bytes_written; \
00099 }
00100
00101
00108 #define LoggerObjC_LogEventv(logger, priority, keyword, subkeyword, text, argp) \
00109 { \
00110 NSString* the_string = [[NSString alloc] initWithFormat:text arguments:argp]; \
00111 Logger_LogEventNoFormat(logger, priority, keyword, subkeyword, [the_string UTF8String]); \
00112 [the_string release]; \
00113 return bytes_written; \
00114 }
00115
00116
00117 #ifdef __cplusplus
00118 }
00119 #endif
00120
00121 #endif
00122