REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
json_logging.cpp
Go to the documentation of this file.
1// Copyright (c) 2023 anabrid GmbH
2// Contact: https://www.anabrid.com/licensing/
3// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
4
5#include "../../../../include/protocol/transport.h"
6#include "protocol/jsonl_logging.h"
7
8size_t msg::StreamLogger::write(uint8_t b) {
9 return target.output.write(b);
10}
11
12void msg::StartupLog::to_pb(pb_SyslogResponse &stream) {
13 stream.is_active = is_active();
14 stream.max_size = buf.max_size;
15 stream.entries = nullptr; buf.data();
16 //TODO @chris
17}
18
19void msg::activate_serial_log() { msg::Log::get().sinks.add_Serial(); }