UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
VoxtaLogger.h
Go to the documentation of this file.
1// Copyright(c) 2024 grrimgrriefer & DZnnah, see LICENSE for details.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
14class VoxtaLogger : public FOutputDevice
15{
16#pragma region public API
17public:
20
23#pragma endregion
24
25#pragma region FOutputDevice overrides
26protected:
28 virtual void Serialize(const TCHAR* Message, ELogVerbosity::Type Verbosity, const class FName& Category) override;
29#pragma endregion
30
31#pragma region data
32private:
33 const FName VOXTA_LOG_CATEGORY = TEXT("VoxtaLog");
34 const FName SIGNALR_LOG_CATEGORY = TEXT("LogSignalR");
35 const FName HTTP_LOG_CATEGORY = TEXT("LogHttp");
36#pragma endregion
37};
VoxtaLogger Internal class that enables the automatic printing of warnings and errors in the VoxtaLog...
Definition VoxtaLogger.h:15
virtual void Serialize(const TCHAR *Message, ELogVerbosity::Type Verbosity, const class FName &Category) override
Custom output implementation, triggered for every single message that is logged, while registered.
Definition VoxtaLogger.cpp:26
void RegisterVoxtaLogger()
Register VoxtaLogger with GLog, allowing the override to run on any logs printed to the console.
Definition VoxtaLogger.cpp:18
~VoxtaLogger()
Destructor.
Definition VoxtaLogger.cpp:8