std::ostream subclass to enable logging with prefix and only on root.
More...
#include <logging.hpp>
|
| | PrefixCout (std::function< std::string() > prefix=[]() { return "";}, bool only_root=true) |
| |
| int | overflow (int ch) override |
| |
std::ostream subclass to enable logging with prefix and only on root.
Use global instances of this class like logroot as a replacement for std::cout.
◆ PrefixCout()
| terra::util::detail::PrefixCout::PrefixCout |
( |
std::function< std::string() > |
prefix = []() { return ""; }, |
|
|
bool |
only_root = true |
|
) |
| |
|
inlineexplicit |
◆ overflow()
| int terra::util::detail::PrefixCout::overflow |
( |
int |
ch | ) |
|
|
inlineoverride |
The documentation for this class was generated from the following file: