#include int main() { openlog("logExample",0, LOG_LOCAL0); char* target = "the unix machine"; int x = 10; syslog(LOG_ERR, "Hey something happened to %s, and it happend %d times!", target, x); closelog(); return 0; }