mp_flipper_logging.h 506 B

123456789101112131415
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. extern const uint8_t MP_FLIPPER_LOG_LEVEL_TRACE;
  5. extern const uint8_t MP_FLIPPER_LOG_LEVEL_DEBUG;
  6. extern const uint8_t MP_FLIPPER_LOG_LEVEL_INFO;
  7. extern const uint8_t MP_FLIPPER_LOG_LEVEL_WARN;
  8. extern const uint8_t MP_FLIPPER_LOG_LEVEL_ERROR;
  9. extern const uint8_t MP_FLIPPER_LOG_LEVEL_NONE;
  10. uint8_t mp_flipper_log_get_effective_level();
  11. bool mp_flipper_log_level_is_valid(uint8_t level);
  12. void mp_flipper_log(uint8_t raw_level, const char* message);