A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DlgLogger.cpp
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#include "Logging/DlgLogger.h"
3#include "DlgConstants.h"
4#include "DlgSystemModule.h"
5#include "DlgSystemSettings.h"
6
7#define LOCTEXT_NAMESPACE "DlgLogger"
8
9static const FName MESSAGE_LOG_NAME{TEXT("Dialogue Plugin")};
10
12{
13 static constexpr bool bOwnMessageLogMirrorToOutputLog = true;
14 EnableMessageLog(bOwnMessageLogMirrorToOutputLog);
16
20
21 // We mirror everything to the output log so that is why we disabled the output log above
22 SetOutputLogCategory(LogDlgSystem);
27}
28
42
44{
45 MessageLogRegisterLogName(MESSAGE_LOG_NAME, LOCTEXT("dlg_key", "Dialogue System Plugin"));
47}
48
53
54#undef LOCTEXT_NAMESPACE
static const FName MESSAGE_LOG_NAME
Definition DlgLogger.cpp:9
static void OnStart()
Definition DlgLogger.cpp:43
Self & SyncWithSettings()
Definition DlgLogger.cpp:29
static void OnShutdown()
Definition DlgLogger.cpp:49
static FDlgLogger & Get()
Definition DlgLogger.h:24
Self & SetMessageLogOpenOnNewMessage(bool bValue)
Definition INYLogger.h:235
Self & EnableMessageLog(bool bSuppressLoggingToOutputLog=false)
Definition INYLogger.h:225
Self & SetOutputLogCategory(const FLogCategoryBase &NewCategory)
Definition INYLogger.h:203
Self & SetMessageLogMirrorToOutputLog(bool bValue)
Definition INYLogger.h:242
Self & DisableOnScreen()
Definition INYLogger.h:156
Self & SetOpenMessageLogLevelsHigherThan(ENYLoggerLogLevel AfterOrEqualLevel)
Definition INYLogger.h:256
Self & UseOutputLog(bool bValue)
Definition INYLogger.h:195
Self & UseMessageLog(bool bValue, bool bInMessageLogMirrorToOutputLog=true)
Definition INYLogger.h:227
Self & DisableClientConsole()
Definition INYLogger.h:142
static void MessageLogRegisterLogName(FName LogName, const FText &LogLabel, const FNYMessageLogInitializationOptions &InitOptions={})
Self & DisableOutputLog()
Definition INYLogger.h:194
Self & SetMessageLogName(FName LogName, bool bVerify=true)
Definition INYLogger.h:273
static bool MessageLogUnregisterLogName(FName LogName)
Self & SetRedirectMessageLogLevelsHigherThan(ENYLoggerLogLevel AfterOrEqualLevel)
Definition INYLogger.h:249
UCLASS(Config = Engine, DefaultConfig, meta = (DisplayName = "Dialogue System Settings"))
ENYLoggerLogLevel RedirectMessageLogLevelsHigherThan
UPROPERTY(Category = "Logger", Config, EditAnywhere, AdvancedDisplay)
bool bEnableMessageLog
UPROPERTY(Category = "Logger", Config, EditAnywhere)
bool bMessageLogMirrorToOutputLog
UPROPERTY(Category = "Logger", Config, EditAnywhere)
bool bMessageLogOpen
UPROPERTY(Category = "Logger", Config, EditAnywhere)
ENYLoggerLogLevel OpenMessageLogLevelsHigherThan
UPROPERTY(Category = "Logger", Config, EditAnywhere, AdvancedDisplay)
bool bEnableOutputLog
UPROPERTY(Config)