Reece
f717511a10
[*] Split objects [*] Consider making ABI object api boilerplate [*] Refactor STLShims (roxtl)
111 lines
2.5 KiB
C++
111 lines
2.5 KiB
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Sinks.cpp
|
|
Date: 2022-1-21
|
|
Author: Reece
|
|
***/
|
|
#include <Source/RuntimeInternal.hpp>
|
|
#include "Sinks.hpp"
|
|
|
|
#include "Sinks/FileSink.hpp"
|
|
#include "Sinks/StdConsole.hpp"
|
|
#include "Sinks/RingBuffer.hpp"
|
|
#include "Sinks/DirLogArchive.hpp"
|
|
|
|
#if defined(AURORA_PLATFORM_WIN32)
|
|
#include "Sinks/EventLog.Win32.hpp"
|
|
#endif
|
|
|
|
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
|
#include "Sinks/DebugLogger.NT.hpp"
|
|
#endif
|
|
|
|
namespace Aurora::Logging
|
|
{
|
|
AUKN_SYM IBasicSink *NewStdSinkNew()
|
|
{
|
|
return Sinks::NewStdSinkNew();
|
|
}
|
|
|
|
AUKN_SYM void NewStdSinkRelease(IBasicSink *sink)
|
|
{
|
|
Sinks::NewStdSinkRelease(sink);
|
|
}
|
|
|
|
AUKN_SYM IBasicSink *NewOSEventDirectorySinkNew()
|
|
{
|
|
return {};
|
|
}
|
|
|
|
AUKN_SYM void NewOSEventDirectorySinkRelease(IBasicSink *sink)
|
|
{}
|
|
|
|
|
|
AUKN_SYM IBasicSink *NewDebugLoggerNew()
|
|
{
|
|
return Sinks::NewDebugLoggerNew();
|
|
}
|
|
|
|
AUKN_SYM void NewDebugLoggerRelease(IBasicSink *sink)
|
|
{
|
|
return Sinks::NewDebugLoggerRelease(sink);
|
|
}
|
|
|
|
|
|
AUKN_SYM IBasicSink *NewOSNamedEventDirectorySinkNew(const AuString &name)
|
|
{
|
|
#if defined(AURORA_PLATFORM_WIN32)
|
|
return Sinks::NewOSNamedEventDirectorySinkNew(name);
|
|
#endif
|
|
return {};
|
|
}
|
|
|
|
AUKN_SYM void NewOSNamedEventDirectorySinkRelease(IBasicSink *sink)
|
|
{
|
|
#if defined(AURORA_PLATFORM_WIN32)
|
|
Sinks::NewOSNamedEventDirectorySinkRelease(sink);
|
|
#endif
|
|
}
|
|
|
|
AUKN_SYM IBasicSink *NewDirectorySinkNew(const AuString &path, DirectoryLogger dirInfo, bool binary)
|
|
{
|
|
return Sinks::NewDirectoryLoggerNew(path, dirInfo, binary);
|
|
}
|
|
|
|
AUKN_SYM void NewDirectorySinkRelease(IBasicSink *sink)
|
|
{
|
|
Sinks::NewDirectoryLoggerRelease(sink);
|
|
}
|
|
|
|
|
|
AUKN_SYM IBasicSink *NewFileSinkNew(const AuString &path, bool binary)
|
|
{
|
|
return Sinks::NewFileSinkNew(path, binary);
|
|
}
|
|
|
|
AUKN_SYM void NewFileSinkRelease(IBasicSink *sink)
|
|
{
|
|
Sinks::NewFileSinkRelease(sink);
|
|
}
|
|
|
|
AUKN_SYM IBasicSink *NewIPCSinkNew(const SocketConsole &console)
|
|
{
|
|
return {};
|
|
}
|
|
|
|
AUKN_SYM void NewIPCSinkRelease(IBasicSink *logger)
|
|
{
|
|
|
|
}
|
|
|
|
AUKN_SYM IBasicSinkRB *NewRingLoggerNew(AuUInt32 maxLogEntries)
|
|
{
|
|
return Sinks::NewRingBufferNew(maxLogEntries);
|
|
}
|
|
|
|
AUKN_SYM void NewRingLoggerRelease(IBasicSinkRB *sink)
|
|
{
|
|
Sinks::NewRingBufferRelease(sink);
|
|
}
|
|
} |