2 * $Id: log.c,v 1.2 2002/02/27 15:51:20 dfs Exp $
4 * Copyright (C) 1995,1996,1997 Lars Fenneberg
6 * See the file COPYRIGHT for the respective terms and conditions.
7 * If the file is missing contact me at lf@elemental.net
8 * and I'll send you a copy.
14 #include <radiusclient.h>
17 * Function: rc_openlog
21 * Arguments: identification string
27 void rc_openlog(char *ident)
29 openlog(ident, LOG_PID, RC_LOG_FACILITY);
35 * Purpose: log information
37 * Arguments: priority (just like syslog), rest like printf
43 void rc_log(int prio, const char *format, ...)
49 vsnprintf(buff, sizeof(buff), format, ap);
52 syslog(prio, "%s", buff);