The intention was to create a MMO gameserver in C. This was one of the basics for taskrambler and is no longer actively maintained.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
431 B

#ifndef __MONITOR_H__
#define __MONITOR_H__
#include <syslog.h> /* for logging */
#define MON_INFO 0
#define MON_WARNING 1
#define MON_CRITICAL 2
#define MON_FAILURE 3
int monitor(unsigned int sev, const char * pattern, const char * message);
int syslogMonitor (unsigned int logLvl, unsigned int sev, const char *pattern, const char * message, ...) __attribute__ ((format (printf, 4, 5)));
#endif /* __MONITOR_H__ */