log.h
上传用户:sddyfurun
上传日期:2007-01-04
资源大小:525k
文件大小:1k
源码类别:

代理服务器

开发平台:

Unix_Linux

  1. /* Copyright (c) 1995,1996,1997 NEC Corporation.  All rights reserved.       */
  2. /*                                                                           */
  3. /* The redistribution, use and modification in source or binary forms of     */
  4. /* this software is subject to the conditions set forth in the copyright     */
  5. /* document ("Copyright") included with this distribution.                   */
  6. /*
  7.  * $Id: log.h,v 1.17 1997/06/16 15:29:47 steve Exp $
  8.  */
  9. #ifndef LOG_H
  10. #define LOG_H
  11. #ifndef P
  12. #ifdef __STDC__
  13. #define P(x) x
  14. #else
  15. #define P(X) ()
  16. #endif
  17. #endif
  18. #ifndef __NOLOGUPDATEPROTO
  19. #ifdef HAVE_STDARG_H
  20. #include <stdarg.h>
  21. #else 
  22. #include <varargs.h>
  23. #endif
  24. extern void S5LogUpdate  P((const void * /* handle  */, int /* level  */, int /* entry */, const char * /* format */, ...));
  25. extern void S5LogvUpdate P((const void * /* handle  */, int /* level  */, int /* entry */, const char * /* format */, va_list));
  26. #endif
  27. extern void S5LogStart   P((      void **/* handlep */, int /* how    */, int /* level */, const char * /* name   */));
  28. extern void S5LogEnd     P((      void * /* handle  */));
  29. /* how */
  30. #define S5_LOG_LOCAL       0x01
  31. #define S5_LOG_SYSTEM      0x02
  32. /* level */
  33. #define S5_LOG_ERROR       0x01
  34. #define S5_LOG_INFO        0x02
  35. #define S5_LOG_WARNING     0x03
  36. #define S5_LOG_DEBUG_MAX   0xff
  37. #define S5_LOG_DEBUG(x)    (0x04 + (x))
  38. extern void *S5LogDefaultHandle;
  39. extern int   S5LogShowThreadIDS;
  40. #endif