Sound Byte Libs
29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
src
sbl
log
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
10
namespace
sbl::log
{
11
12
template
<
typename
A,
typename
B>
13
struct
TeeOutput
{
14
static
void
write
(
const
char
* str) {
15
A::write(str);
16
B::write(str);
17
}
18
};
19
20
}
// namespace sbl::log
sbl::log
Lightweight logging system.
Definition
banner.hpp:50
sbl::log::TeeOutput
Definition
tee_output.hpp:13
sbl::log::TeeOutput::write
static void write(const char *str)
Definition
tee_output.hpp:14
Generated by
1.9.8