16 const config streamConfig = optStreamConfig ? *optStreamConfig :
config();
18 if (streamConfig.bDisableStdioSync)
20 std::ios_base::sync_with_stdio(
false);
23 if (streamConfig.bUntieCin)
25 std::wcin.tie(
nullptr);
26 std::wcout.tie(
nullptr);
36 inline void cout_logger_stream::cout_colorized(verbosity eVerbosity, string_view svMessage,
const color& rangeColor)
45 inline void cout_logger_stream::cout_common(verbosity eVerbosity, string_view svMessage)
50 !is_error(eVerbosity) ? details::get_cout<char_type>::get() : details::get_cerr<char_type>::get();
51 outputStream << svMessage;
A base class for logger streams based on standard streams.
void check_previous_message(verbosity eCurrentMessageVerbosity)
Check the previous message type and flush if needed.
cout_logger_stream(std::optional< config > optStreamConfig={}) noexcept
cout_logger_stream object constructor
virtual void do_flush() override
Flush the stream.
static constexpr terminal_color reset() noexcept
Reset all colors.
static constexpr terminal_color font(const color &fontColor) noexcept
Set font color.
bool is_error(verbosity eVerbosity) noexcept
Check if the verbosity level is an error.