logactivityany.c (697B)
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 log_activity_any (char const *action) { 9 if (!log_activity) 10 return; 11 if (!logstarted++) 12 openlog ("crossroads", LOG_PID, log_facility); 13 syslog (LOG_NOTICE, "%s %s %s from %s to %s", 14 ansistamp(tm_localtime), action, activeservice->name, 15 client_ip, activeservice->backend[current_backend].server); 16 }