{
log_buffer.append(s, len);
}
+
+ // Discard buffer; call only when the stream isn't active.
+ void discard()
+ {
+ current_index = 0;
+ log_buffer.trim_to(0);
+ }
};
}
}
}
+void discard_console_log_buffer() noexcept
+{
+ log_stream[DLOG_CONS].discard();
+}
// Variadic method to calculate the sum of string lengths:
static int sum_length(const char *arg) noexcept
void init_log(ServiceSet *sset);
void setup_main_log(int fd);
bool is_log_flushed() noexcept;
+void discard_console_log_buffer() noexcept;
void log(LogLevel lvl, const char *msg) noexcept;
void logMsgBegin(LogLevel lvl, const char *msg) noexcept;