2 * Copyright (c) 1989 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
8 __RCSID("$Heimdal: pop_log.c 3609 1997-10-14 21:59:37Z joda $"
12 * log: Make a log entry
16 pop_log(POP
*p
, int stat
, char *format
, ...)
18 char msgbuf
[MAXLINELEN
];
22 vsnprintf(msgbuf
, sizeof(msgbuf
), format
, ap
);
24 if (p
->debug
&& p
->trace
) {
25 fprintf(p
->trace
,"%s\n",msgbuf
);
29 krb5_log(p
->context
, p
->logf
, stat
, "%s", msgbuf
);
31 syslog (stat
,"%s",msgbuf
);