AuroraRuntime/Source/Logging/Sinks/DebugLogger.NT.hpp
Reece f717511a10 [+] NT OutputDebugStringW logger sink
[*] Split objects
[*] Consider making ABI object api boilerplate
[*] Refactor STLShims (roxtl)
2022-03-31 01:31:40 +01:00

29 lines
703 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: DeebugLogger.NT.hpp
Date: 2022-3-31
Author: Reece
***/
#pragma once
namespace Aurora::Logging::Sinks
{
struct ConsoleDebugLogger : IBasicSink
{
void OnMessageBlocking(AuUInt8 level, const ConsoleMessage &msg) override;
bool OnMessageNonblocking(AuUInt8 level, const ConsoleMessage &msg) override;
void OnFlush() override;
private:
//StringBuilder stringBuilder_;
void Write(const ConsoleMessage &msg);
};
inline ConsoleDebugLogger gDebugLoggerNt;
void NewDebugLoggerRelease(IBasicSink *logger);
IBasicSink *NewDebugLoggerNew();
}