|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Sends anything written to std::cout to stderr for as long as it is alive. More...
Public Member Functions | |
| CoutToStderr () | |
| ~CoutToStderr () | |
Private Attributes | |
| std::streambuf * | saved_ |
Sends anything written to std::cout to stderr for as long as it is alive.
StateMachine logs its "Loaded 20 state(s)" banner on std::cout, which is fine in a service and ruinous here: stdout is this tool's machine-readable channel and the backend parses every line of it into the editor's gutter. Rather than change logging that other services rely on, the two calls that emit it are wrapped.
|
inline |
|
inline |
|
private |
Definition at line 57 of file main.cpp.
Referenced by CoutToStderr(), and ~CoutToStderr().