A small USV for ALIX boards with i2c support
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.

20 lines
346B

  1. #ifndef _LOGGING_H_
  2. #define _LOGGING_H_
  3. #define LOG_DEBUG 5
  4. #define LOG_INFO 4
  5. #define LOG_NOTICE 3
  6. #define LOG_WARN 2
  7. #define LOG_ERROR 1
  8. #define LOG_CRIT 0
  9. #define LOG_EVERYTIME 0
  10. int log_init(const char *logfile);
  11. void log_close(void);
  12. void log_setprio(int prio);
  13. int log_print(int prio, const char *fmt, ... );
  14. #endif /* _LOGGING_H_ */