# How to pass variable LogCategory to UE\_LOG?

**URL:** <https://forums.unrealengine.com/t/how-to-pass-variable-logcategory-to-ue-log/423108>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 20, 2018, 2:21am UTC](https://forums.unrealengine.com/t/how-to-pass-variable-logcategory-to-ue-log/423108 "2018-04-20T02:21:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 20, 2018, 7:22am UTC](https://forums.unrealengine.com/t/how-to-pass-variable-logcategory-to-ue-log/423108/2 "2018-04-20T07:22:13Z")

</div>

You need to declare log category first, you can read about it here:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

If you want to do easy quick debug you can also use GLog-\>Log(FString) which is easiest way to log but bypass advance log features.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-pass-variable-logcategory-to-ue-log/423108)._
