qxLib
debugger_logger_stream.inl
Go to the documentation of this file.
1 /**
2 
3  @file debugger_logger_stream.inl
4  @author Khrapov
5  @date 12.11.2023
6  @copyright © Nick Khrapov, 2023. All right reserved.
7 
8 **/
9 
10 namespace qx
11 {
12 
14 {
15 }
16 
17 inline void debugger_logger_stream::flush()
18 {
19 }
20 
21 inline void debugger_logger_stream::do_log(
22  string_view svMessage,
23  const log_unit& logUnit,
24  const std::vector<logger_color_range>& colors,
25  verbosity eVerbosity)
26 {
27 #if QX_WIN
28  if (IsDebuggerPresent())
29  {
30  thread_local string sMessage;
31  sMessage = svMessage;
32  OutputDebugString(sMessage.c_str());
33  }
34 #endif
35 }
36 
37 } // namespace qx
Base class for logger streams.
debugger_logger_stream()
debugger_logger_stream object constructor