ESP32-P4 OBC Firmware
ESP-IDF firmware for Plant-B CubeSat OBC
 
Loading...
Searching...
No Matches
pal_log.h File Reference

Platform-agnostic logging macros. More...

Go to the source code of this file.

Macros

#define PAL_LOGI(tag, fmt, ...)
 Log an informational message.
 
#define PAL_LOGE(tag, fmt, ...)
 Log an error message.
 
#define PAL_LOGW(tag, fmt, ...)
 Log a warning message.
 
#define PAL_LOGD(tag, fmt, ...)
 Log a debug message.
 
#define PAL_LOGV(tag, fmt, ...)
 Log a verbose message.
 
#define PAL_LOG_BUFFER_HEX(tag, buf, len, level)
 Dump a buffer as hexadecimal bytes at the specified log level.
 
#define PAL_LOG_BUFFER_HEXDUMP(tag, buf, len, level)
 Dump a buffer as a hex dump at the specified log level.
 

Enumerations

enum  pal_log_level_t {
  PAL_LOG_ERROR = 0 , PAL_LOG_WARN , PAL_LOG_INFO , PAL_LOG_DEBUG ,
  PAL_LOG_VERBOSE
}
 Log severity levels in ascending order of verbosity. More...
 

Variables

static const char * _pal_level_str [] = { "E", "W", "I", "D", "V" }
 Mapping table from pal_log_level_t to PAL log level prefixes.
 

Detailed Description

Platform-agnostic logging macros.

Author
Adrien Chevrier

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Version
0.1
Date
2026-02-05