58 LogWriter(Backend configured_backend,
size_t file_buffer_size);
size_t get_total_written(LogType type) const
uint8_t Backend
bitfield to specify a backend
Manages starting, stopping & writing of logged data using the configured backend. ...
void thread_stop()
stop all running threads and wait for them to exit
LogType
Defines different log (file) types.
pthread_t thread_id_file() const
static constexpr Backend BackendFile
LogWriterMavlink * _log_writer_mavlink_for_write
int write_message(LogType type, void *ptr, size_t size, uint64_t dropout_start=0)
Write a single ulog message (including header).
bool need_reliable_transfer() const
void start_log_file(LogType type, const char *filename)
bool need_reliable_transfer() const
bool is_started(LogType type) const
whether logging is currently active or not (any of the selected backends).
bool need_reliable_transfer() const
void stop_log_file(LogType type)
size_t get_total_written_file(LogType type) const
LogWriterFile * _log_writer_file_for_write
pointer that is used for writing, to temporarily select write backends
Writes logging data to a file.
size_t get_buffer_size(LogType type) const
size_t get_buffer_fill_count(LogType type) const
LogWriter(Backend configured_backend, size_t file_buffer_size)
static constexpr Backend BackendAll
size_t get_buffer_size_file(LogType type) const
LogWriterMavlink * _log_writer_mavlink
LogWriterFile * _log_writer_file
size_t get_buffer_fill_count_file(LogType type) const
void select_write_backend(Backend sel_backend)
Select a backend, so that future calls to write_message() only write to the selected sel_backend...
void set_need_reliable_transfer(bool need_reliable)
Indicate to the underlying backend whether future write_message() calls need a reliable transfer...
void set_need_reliable_transfer(bool need_reliable)
void set_need_reliable_transfer(bool need_reliable)
Writes logging data to uORB, and then sent via mavlink.
pthread_t thread_id() const
static constexpr Backend BackendMavlink
void unselect_write_backend()