home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / fax-3.2.1 / lib / libfax / log.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-31  |  919 b   |  45 lines

  1. /*
  2.   log.h
  3.  
  4.   (c) Copyright 1991 by David M. Siegel.
  5.       All rights reserved.
  6.  
  7.   %W% %G% %U%
  8. */
  9.  
  10. #ifndef in_libfax_log_h
  11. #define in_libfax_log_h 1
  12.  
  13. #include <syslog.h>
  14.  
  15. /* log levels */
  16. #define L_EMERG   LOG_EMERG,__FILE__,__LINE__    /* system is unusabled    */
  17. #define L_ALERT      LOG_ALERT,__FILE__,__LINE__    /* action must be taken    */
  18. #define L_CRIT      LOG_CRIT,__FILE__,__LINE__    /* critical condition    */
  19. #define L_ERR      LOG_ERR,__FILE__,__LINE__    /* error condition    */
  20. #define L_WARNING LOG_WARNING,__FILE__,__LINE__    /* warning condition    */
  21. #define L_NOTICE  LOG_NOTICE,__FILE__,__LINE__    /* normal but signif    */
  22. #define L_INFO    LOG_INFO,__FILE__,__LINE__    /* informational    */
  23. #define L_DEBUG   LOG_DEBUG,__FILE__,__LINE__    /* debug-level message    */
  24.  
  25. /*
  26.   Prototypes:
  27. */
  28.  
  29. /*VARARGS*/
  30. int log();
  31.  
  32. void log_set_level(
  33. #ifdef _PROTO
  34.     int
  35. #endif
  36. );
  37.  
  38. void log_enable_syslog(
  39. #ifdef _PROTO
  40.      int facility
  41. #endif
  42. );
  43.  
  44. #endif
  45.