36#if defined(__linux__) || defined(__MACH__)
38#elif defined(ESP_PLATFORM)
46os_mutex_t g_log_mutex = OS_MUTEX_INITIALIZER;
49#ifdef MBED_USE_STDIO_LOGGING
51extern "C" {
void send_stdio_serial_message(
const char* data); }
54 if (size <= 0)
return;
56 send_stdio_serial_message(buf);
59#elif defined(__linux__) || defined(__MACH__) || defined(__EMSCRIPTEN__) || \
62#include "utils/stdio_logging.h"
73__attribute__((weak))
void log_output(
char* buf,
int size) {}
char logbuffer[256]
Temporary buffer to sprintf() the log lines into.
void log_output(char *buf, int size)
Prints a line of log to the log output destination.