1#ifndef __INCLUDE__GUARD__LOG_H_
2#define __INCLUDE__GUARD__LOG_H_
7#define LOG_FORMATTED_MESSAGE_MAX_LENGTH 185
void LOG_set_system_severity_mask(LOG_system_enum_t system, uint32_t severity_mask)
Set the logging severity bitfield mask for a subsystem.
Definition log.c:325
@ LOG_SYSTEM_OFF
Definition log.h:60
@ LOG_SYSTEM_ON
Definition log.h:61
LOG_context_enum_t
Definition log.h:50
@ LOG_CONTEXT_AUTONOMOUS
Definition log.h:51
@ LOG_CONTEXT_SCHEDULED_TELECOMMAND
Definition log.h:53
@ LOG_CONTEXT_IMMEDIATE_TELECOMMAND
Definition log.h:52
const char * LOG_get_severity_name(LOG_severity_enum_t severity)
Get the name of a severity enum.
Definition log.c:436
LOG_context_enum_t LOG_current_log_context
Definition log.c:23
uint16_t LOG_number_of_logging_sinks(void)
Definition log.c:423
void LOG_message(LOG_system_enum_t source, LOG_severity_enum_t severity, uint32_t sink_mask, const char fmt[],...) __attribute__((format(printf
uint8_t LOG_is_sink_enabled(LOG_sink_enum_t sink)
Check logging sink status.
Definition log.c:236
@ LOG_SINK_ON
Definition log.h:28
@ LOG_SINK_OFF
Definition log.h:27
void LOG_set_system_debugging_messages_enabled_state(LOG_system_enum_t system, uint8_t state)
Turn debugging messages on or off for the specified system.
Definition log.c:283
uint8_t LOG_memory_table_max_entries(void)
Get the size in entries of the in-memory log table.
Definition log.c:456
void LOG_set_system_file_logging_enabled_state(LOG_system_enum_t system, uint8_t state)
Enable or disable logging to file for a subsystem.
Definition log.c:365
LOG_severity_enum_t
Definition log.h:9
@ LOG_SEVERITY_CRITICAL
Definition log.h:14
@ LOG_SEVERITY_WARNING
Definition log.h:12
@ LOG_SEVERITY_DEBUG
Definition log.h:10
@ LOG_SEVERITY_ERROR
Definition log.h:13
@ LOG_SEVERITY_NORMAL
Definition log.h:11
void LOG_set_sink_debugging_messages_enabled_state(LOG_sink_enum_t sink, uint8_t state)
Turn debugging messages on or off for the specified sink.
Definition log.c:255
void LOG_report_sink_enabled_state(LOG_sink_enum_t sinks)
Report a sink's enabled state.
Definition log.c:385
void LOG_report_system_file_logging_state(LOG_system_enum_t systems)
Report a subsystem's file-logging state.
Definition log.c:405
uint16_t LOG_number_of_logging_systems(void)
Definition log.c:428
uint8_t LOG_get_memory_table_index_of_most_recent_log_entry(void)
Get the index of the most recent in-memory log message.
Definition log.c:463
const char * LOG_get_memory_table_full_message_at_index(uint8_t index)
Get a pointer to the full text of the in-memory log message at the specified index.
Definition log.c:472
void LOG_set_sink_enabled_state(LOG_sink_enum_t sink, uint8_t state)
Enable or disable logging to a sink.
Definition log.c:343
void uint32_t LOG_all_sinks_except(uint32_t exceptions)
Returns all sinks, except the specified exceptions.
Definition log.c:228
uint8_t LOG_is_system_file_logging_enabled(LOG_system_enum_t system)
Check whether file logging is enabled for a subsystem.
Definition log.c:309
LOG_system_enum_t
Definition log.h:31
@ LOG_SYSTEM_ALL
Definition log.h:47
@ LOG_SYSTEM_LOG
Definition log.h:43
@ LOG_SYSTEM_UMBILICAL_UART
Definition log.h:34
@ LOG_SYSTEM_ANTENNA_DEPLOY
Definition log.h:42
@ LOG_SYSTEM_UHF_RADIO
Definition log.h:33
@ LOG_SYSTEM_ADCS
Definition log.h:39
@ LOG_SYSTEM_UNIT_TEST
Definition log.h:45
@ LOG_SYSTEM_LFS
Definition log.h:40
@ LOG_SYSTEM_GNSS
Definition log.h:35
@ LOG_SYSTEM_OBC
Definition log.h:32
@ LOG_SYSTEM_UNKNOWN
Definition log.h:46
@ LOG_SYSTEM_FLASH
Definition log.h:41
@ LOG_SYSTEM_MPI
Definition log.h:36
@ LOG_SYSTEM_EPS
Definition log.h:37
@ LOG_SYSTEM_TELECOMMAND
Definition log.h:44
@ LOG_SYSTEM_BOOM
Definition log.h:38
LOG_sink_enum_t
Definition log.h:17
@ LOG_SINK_ALL
Definition log.h:23
@ LOG_SINK_UNKNOWN
Definition log.h:22
@ LOG_SINK_UMBILICAL_UART
Definition log.h:21
@ LOG_SINK_UHF_RADIO
Definition log.h:19
@ LOG_SINK_NONE
Definition log.h:18
@ LOG_SINK_FILE
Definition log.h:20
__attribute__((weak))
Definition syscalls.c:67