aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/platform/win/DebugLogTarget.h
blob: 8257f6374d182e9539dd159d7f6dcb5a679a3d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include "../../PreConfig.h"
#ifdef CRU_PLATFORM_WINDOWS

#include "WinPreConfig.h"

#include "../../log/Logger.h"

namespace cru::platform::win {

class CRU_BASE_API WinDebugLogTarget : public ::cru::log::ILogTarget {
 public:
  WinDebugLogTarget() = default;

  CRU_DELETE_COPY(WinDebugLogTarget)
  CRU_DELETE_MOVE(WinDebugLogTarget)

  ~WinDebugLogTarget() = default;

  void Write(::cru::log::LogLevel level, StringView s) override;
};
}  // namespace cru::platform::win

#endif