Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
tee_output.hpp
Go to the documentation of this file.
1/*
2 * tee_output.hpp — Dual-sink log output template
3 *
4 * Composes two log sinks so every write goes to both.
5 * Works with any type that provides static void write(const char*).
6 */
7
8#pragma once
9
10namespace sbl::log {
11
12template<typename A, typename B>
13struct TeeOutput {
14 static void write(const char* str) {
15 A::write(str);
16 B::write(str);
17 }
18};
19
20} // namespace sbl::log
Lightweight logging system.
Definition banner.hpp:50
static void write(const char *str)