|
@@ -735,25 +735,25 @@ public:
|
|
|
void setQueueDroppingLimit(unsigned lim, unsigned numToDrop);
|
|
|
void resetQueueLimit();
|
|
|
bool flushQueue(unsigned timeout) { if(processor) return processor->flush(timeout); else return true; }
|
|
|
- void report(const LogMsgCategory & cat, const char * format, ...);
|
|
|
- void report_va(const LogMsgCategory & cat, const char * format, va_list args);
|
|
|
- void report(const LogMsgCategory & cat, LogMsgCode code, const char * format, ...);
|
|
|
- void report_va(const LogMsgCategory & cat, LogMsgCode code, const char * format, va_list args);
|
|
|
+ void report(const LogMsgCategory & cat, const char * format, ...) __attribute__((format(printf,3,4)));
|
|
|
+ void report_va(const LogMsgCategory & cat, const char * format, va_list args) __attribute__((format(printf,3,0)));
|
|
|
+ void report(const LogMsgCategory & cat, LogMsgCode code, const char * format, ...) __attribute__((format(printf,4,5)));
|
|
|
+ void report_va(const LogMsgCategory & cat, LogMsgCode code, const char * format, va_list args) __attribute__((format(printf,4,0)));
|
|
|
void report(const LogMsgCategory & cat, const IException * e, const char * prefix = NULL);
|
|
|
- void report(unsigned compo, const LogMsgCategory & cat, const char * format, ...);
|
|
|
- void report_va(unsigned compo, const LogMsgCategory & cat, const char * format, va_list args);
|
|
|
- void report(unsigned compo, const LogMsgCategory & cat, LogMsgCode code, const char * format, ...);
|
|
|
- void report_va(unsigned compo, const LogMsgCategory & cat, LogMsgCode code, const char * format, va_list args);
|
|
|
+ void report(unsigned compo, const LogMsgCategory & cat, const char * format, ...) __attribute__((format(printf,4,5)));
|
|
|
+ void report_va(unsigned compo, const LogMsgCategory & cat, const char * format, va_list args) __attribute__((format(printf,4,0)));
|
|
|
+ void report(unsigned compo, const LogMsgCategory & cat, LogMsgCode code, const char * format, ...) __attribute__((format(printf,5,6)));
|
|
|
+ void report_va(unsigned compo, const LogMsgCategory & cat, LogMsgCode code, const char * format, va_list args) __attribute__((format(printf,5,0)));
|
|
|
void report(unsigned compo, const LogMsgCategory & cat, const IException * e, const char * prefix = NULL);
|
|
|
- void report(const LogMsgCategory & cat, const LogMsgJobInfo & job, const char * format, ...);
|
|
|
- void report_va(const LogMsgCategory & cat, const LogMsgJobInfo & job, const char * format, va_list args);
|
|
|
- void report(const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char * format, ...);
|
|
|
- void report_va(const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char * format, va_list args);
|
|
|
+ void report(const LogMsgCategory & cat, const LogMsgJobInfo & job, const char * format, ...) __attribute__((format(printf,4,5)));
|
|
|
+ void report_va(const LogMsgCategory & cat, const LogMsgJobInfo & job, const char * format, va_list args) __attribute__((format(printf,4,0)));
|
|
|
+ void report(const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char * format, ...) __attribute__((format(printf,5,6)));
|
|
|
+ void report_va(const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char * format, va_list args) __attribute__((format(printf,5,0)));
|
|
|
void report(const LogMsgCategory & cat, const LogMsgJobInfo & job, const IException * e, const char * prefix = NULL);
|
|
|
- void report(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, const char * format, ...);
|
|
|
- void report_va(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, const char * format, va_list args);
|
|
|
- void report(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char * format, ...);
|
|
|
- void report_va(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char * format, va_list args);
|
|
|
+ void report(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, const char * format, ...) __attribute__((format(printf,5,6)));
|
|
|
+ void report_va(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, const char * format, va_list args) __attribute__((format(printf,5,0)));
|
|
|
+ void report(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char * format, ...) __attribute__((format(printf,6,7)));
|
|
|
+ void report_va(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char * format, va_list args)__attribute__((format(printf,6,0)));
|
|
|
void report(unsigned compo, const LogMsgCategory & cat, const LogMsgJobInfo & job, const IException * e, const char * prefix = NULL);
|
|
|
void report(const LogMsg & msg) const { if(prefilter.includeCategory(msg.queryCategory())) doReport(msg); }
|
|
|
bool addMonitor(ILogMsgHandler * handler, ILogMsgFilter * filter);
|