C++ DEBUG MACROS

Drop‑in, type‑safe replacements for UE_LOG, GEngine->AddOnScreenDebugMessage, and DrawDebugString — Easy log macros for C++ Devs. Pass variadic arguments of any type to convert and print with configurable presets


🛠️How to Setup


1️⃣ Log with Pre-defined Presets

These pre-defined presets can be changed in plugin settings which will affect these macros color, duration, severity and print mode.

Macro
Output Target
Severity
Color
Duration
Key

PrintInfo(...)

Screen + Log

Info

🟢

3.0

None

PrintWarn(...)

Screen + Log

Warn

🟡

5.0

None

PrintError(...)

Screen + Log

Error

🔴

7.0

None

LogInfo(...)

Log only

Info

🟢

0.0

None

LogWarn(...)

Log only

Warn

🟡

0.0

None

LogError(...)

Log only

Error

🔴

0.0

None

Print3D(Location, ...)

World + Log

Info

🟠

5.0

None


2️⃣ Log with Custom Presets

More Custom macros can be added in the ALS_Macro.h file. Feel free to adjust them to your preference accordingly.

Macro

PrintCustom(PrintConfig, ...)

Print3DCustom(PrintConfig, Location, ...)

PrintPreset(Preset, ...)

LogPreset(Preset, ...)

JustPrint(zPreset, ...)

JustLog(Preset, ...)

ALSFileLog(Message, Severity)

ConvertToStringALS(Arg)


You can also:

  • Toggle file logging.

  • Change default on‑screen duration & colour.

  • Globally enable/disable 3‑D debug strings.

All from Project Settings → Plugins → ALS.


Last updated