Files
TG_ARPG/Plugins/Developer/RiderLink/Source/RiderLogging/Private/RiderOutputDevice.hpp
2023-07-16 14:29:40 +08:00

21 lines
650 B
C++

#pragma once
#include "Misc/OutputDevice.h"
#include "Delegates/Delegate.h"
#include "Logging/LogVerbosity.h"
DECLARE_DELEGATE_FourParams(FOnSerializeMessage, const TCHAR*, ELogVerbosity::Type, const class FName&, TOptional<double>);
class FRiderOutputDevice : public FOutputDevice {
public:
FRiderOutputDevice();
virtual ~FRiderOutputDevice() override;
FOnSerializeMessage onSerializeMessage;
protected:
virtual void Serialize(const TCHAR* V, ELogVerbosity::Type Verbosity, const class FName& Category) override;
virtual void Serialize(const TCHAR* V, ELogVerbosity::Type Verbosity, const class FName& Category, double Time) override;
};