UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LogScopedVerbosityOverride.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"
7#include "Misc/Build.h"
8
10
11/*-----------------------------------------------------------------------------
12 FLogScopedVerbosityOverride
13-----------------------------------------------------------------------------*/
20{
21private:
23 FLogCategoryBase* SavedCategory;
24 ELogVerbosity::Type SavedVerbosity;
25
26public:
29
32
33 // Disable accidental copies
36};
37
43#if NO_LOGGING
44 #define LOG_SCOPE_VERBOSITY_OVERRIDE(...)
45#else
46 #define LOG_SCOPE_VERBOSITY_OVERRIDE(CategoryName, ScopeVerbosity) FLogScopedVerbosityOverride LogCategory##CategoryName##Override(&CategoryName, ScopeVerbosity)
47#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition LogScopedVerbosityOverride.h:20
CORE_API ~FLogScopedVerbosityOverride()
Definition LogScopedVerbosityOverride.cpp:17
FLogScopedVerbosityOverride(const FLogScopedVerbosityOverride &)=delete
FLogScopedVerbosityOverride & operator=(const FLogScopedVerbosityOverride &)=delete
Type
Definition LogVerbosity.h:17
Definition LogCategory.h:21