Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
OutputDeviceDebug.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Logging/LogVerbosity.h"
7#include "Misc/OutputDevice.h"
8#include "UObject/NameTypes.h"
9
10#include <atomic>
11
13{
14public:
15 /**
16 * Serializes the passed in data unless the current event is suppressed.
17 *
18 * @param Data Text to log
19 * @param Event Event name used for suppression purposes
20 */
21 virtual void Serialize(const TCHAR* Data, ELogVerbosity::Type Verbosity, const FName& Category, double Time) override;
22
23 virtual void Serialize(const TCHAR* Data, ELogVerbosity::Type Verbosity, const FName& Category) override;
24
25 virtual void SerializeRecord(const UE::FLogRecord& Record) override;
26
27 virtual bool CanBeUsedOnAnyThread() const override
28 {
29 return true;
30 }
31
32 virtual bool CanBeUsedOnMultipleThreads() const override;
33
34 virtual bool CanBeUsedOnPanicThread() const override
35 {
36 return true;
37 }
38
39private:
40 void ConditionalTickAsync(double Time);
41 void TickAsync();
42
43 std::atomic<double> LastTickTime = 0.0;
44 std::atomic<bool> bSerializeAsJson = false;
45};
virtual bool CanBeUsedOnAnyThread() const override
virtual bool CanBeUsedOnMultipleThreads() const override
std::atomic< double > LastTickTime
virtual void Serialize(const TCHAR *Data, ELogVerbosity::Type Verbosity, const FName &Category, double Time) override
std::atomic< bool > bSerializeAsJson
virtual void Serialize(const TCHAR *Data, ELogVerbosity::Type Verbosity, const FName &Category) override
void ConditionalTickAsync(double Time)
virtual bool CanBeUsedOnPanicThread() const override
virtual void SerializeRecord(const UE::FLogRecord &Record) override
Definition Vector.h:40
Definition json.hpp:4518