+static inline void log_message (int level, const char *format, ...)
+{
+ va_list args;
+
+ if (!log_ok())
+ return;
+
+ va_start(args, format);
+ vsyslog(level, format, args);
+ va_end(args);
+}
+
+#undef init_logging
+static inline void init_logging(char *program_name)
+{
+ snprintf(logname, 42,"%s[%d]", program_name, getpid());
+ openlog(logname, 0, LOG_DAEMON);
+}
+
+#endif /* LOG */