Reece
f717511a10
[*] Split objects [*] Consider making ABI object api boilerplate [*] Refactor STLShims (roxtl)
29 lines
703 B
C++
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();
|
|
} |