error:
C2039: ‘ALL’: is not a member of ‘ELogVerbosity’
I’ve truncated my code, but this is everything that has to do with my error directly. ‘ALL’ is indeed included in the namespace, but I can’t get my custom log category to declare with it. I specifically want it in the runtimeVerbosity, so if anyone is able to help it’s greatly appreciated.
My code base is getting larger and larger, so I want to implement a debugging setup in order to make continued maintenance and development easier on my team. If anyone has a better way that is also appreciated.
I should note an explicit implementation works:
UE_LOG(TempLog, Warning, TEXT("Testing: 1, 2, 3."));
RTSGameMode.cpp:
#include "Shards.h"
#include "RTSGameMode.h"
void ARTSGameMode::StartPlay()
{
Super::StartPlay();
if (GEngine)
{
// Display a debug message for five seconds.
// The -1 "Key" value (first argument)
// indicates that we will never need to update or refresh this message.
// GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Yellow,
// TEXT("Hello World, this is FPSGameMode!"));
// Runtime debug message test
UE_LOG(ShardsLog, Warning, TEXT("Game Started!"));
}
}
Shards.cpp:
#include "Shards.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, Shards, "Shards" );
// Game Debuggign - Custom Log Categories
// General Log.
DEFINE_LOG_CATEGORY(ShardsLog);
Shards.h:
#pragma once
#include "Engine.h"
// Game logging - Long term debugging.
// General Log.
DECLARE_LOG_CATEGORY_EXTERN(ShardsLog, Log, ALL); // error is here <-----