writelog.c (571B)
1 /************************************************************************* 2 * This file is part of Crosroads 1.23, a load balancer and fail over 3 * utility for TCP. Copyright (c) Karel Kubat, distributed under GPL. 4 * Visit http://crossroads.e-tunity.com for information. 5 *************************************************************************/ 6 #include "crossroads.h" 7 8 void writelog (int prio, char const *fmt, ...) { 9 va_list args; 10 11 va_start (args, fmt); 12 if (!logstarted++) 13 openlog ("crossroads", LOG_PID, log_facility); 14 vsyslog (prio, fmt, args); 15 }