home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / stg_v4.lzh / syslog.h < prev    next >
C/C++ Source or Header  |  1994-11-11  |  1KB  |  51 lines

  1. /*
  2.  * syslog codes - semi unix compatible
  3.  *
  4.  * 92/10/28 StG - initial version
  5. */
  6.  
  7. #ifdef _OSK
  8.  
  9. /* error levels */
  10. #define LOG_EMERG    '!'        /* system is unusable */
  11. #define LOG_ALERT    'A'        /* action must be taken now */
  12. #define LOG_CRIT    'C'        /* critical conditions */
  13. #define LOG_ERR        'E'        /* error conditions */
  14. #define LOG_WARNING    'W'        /* warning conditions */
  15. #define LOG_NOTICE    'N'        /* normal but significant */
  16. #define LOG_INFO    'I'        /* informational */
  17. #define LOG_DEBUG    'D'        /* debug messages */
  18.  
  19. /* following are StG Net specific */
  20. #define LOG_LOGIN    'L'        /* user has logged in */
  21. #define LOG_BADPW    'P'        /* user has entered a bad password */
  22.  
  23. #define LOG_SMON    'm'        /* smon modem message */
  24.  
  25. #define LOG_BUG        'B'        /* software bug has been detected */
  26.  
  27. #define LOG_DAEMON    0
  28. #define LOG_PID        0
  29. #define LOG_CONS    0
  30. #define LOG_NDELAY    0
  31. #define LOG_AUTH    0
  32. #define LOG_MAIL    0
  33.  
  34. #define LOG_STGNET    0
  35.  
  36. #else
  37.  
  38. /* unix, msdos, etc */
  39. #include <syslog.h>
  40.  
  41. #define LOG_BADPW LOG_ALERT
  42. #define LOG_LOGIN LOG_INFO
  43. #define LOG_BUG LOG_CRIT
  44. #define LOG_SMON LOG_INFO
  45.  
  46. /* facility code - map to LOCAL7 for unix */
  47. #define LOG_STGNET LOG_LOCAL7
  48.  
  49. #endif
  50.  
  51.