fr_log.c 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * $Id: log.c,v 1.5 2007/06/21 18:07:23 cparker Exp $
  3. *
  4. * Copyright (C) 1995,1996,1997 Lars Fenneberg
  5. *
  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.
  9. *
  10. */
  11. #include <radius_config.h>
  12. #include <includes.h>
  13. #include <freeradius-client.h>
  14. /** Opens system log
  15. *
  16. * @param ident the name of the program.
  17. */
  18. void rc_openlog(char const *ident)
  19. {
  20. #ifndef _MSC_VER /* TODO: Fix me */
  21. // openlog(ident, LOG_PID, RC_LOG_FACILITY);
  22. #endif
  23. }
  24. /** Logs information on system log
  25. *
  26. * @param prio the syslog priority.
  27. * @param format the format of the data to print.
  28. */
  29. void rc_log(int prio, char const *format, ...)
  30. {
  31. #ifdef RC_LOG
  32. // printf(format);
  33. #endif
  34. /*
  35. char buff[1024];
  36. va_list ap;
  37. va_start(ap,format);
  38. vsnprintf(buff, sizeof(buff), format, ap);
  39. va_end(ap);
  40. #ifndef _MSC_VER TODO: Fix me
  41. syslog_str(prio, "%s", buff);
  42. #endif
  43. */
  44. }