Broadcast forwarder for ip-bound gameservers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

logging.h 674B

1234567891011121314151617181920212223
  1. #ifndef _LOGGING_H_
  2. #define _LOGGING_H_
  3. #define LOG_EMERG 0 /* system is unusable */
  4. #define LOG_ALERT 1 /* action must be taken immediately */
  5. #define LOG_CRIT 2 /* critical conditions */
  6. #define LOG_ERR 3 /* error conditions */
  7. #define LOG_WARNING 4 /* warning conditions */
  8. #define LOG_NOTICE 5 /* normal but significant condition */
  9. #define LOG_INFO 6 /* informational */
  10. #define LOG_DEBUG 7 /* debug-level messages */
  11. #define LOG_EVERYTIME LOG_EMERG
  12. #define LOG_ERROR LOG_ERR
  13. #define LOG_WARN LOG_WARNING
  14. int log_init(const char *logfile);
  15. void log_close(void);
  16. void log_setprio(int prio);
  17. int log_print(int prio, const char *fmt, ... );
  18. #endif /* _LOGGING_H_ */