# Concatenate Text in debug

**URL:** <https://forums.unrealengine.com/t/concatenate-text-in-debug/475507>\
**Category:** UI\
**Tags:** debug, FText, text, unreal-engine, log, question, CPP\
**Created:** [December 6, 2020, 7:58pm UTC](https://forums.unrealengine.com/t/concatenate-text-in-debug/475507 "2020-12-06T19:58:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AgentArachnid66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentArachnid66](https://forums.unrealengine.com/u/AgentArachnid66)\
**Post date:** [December 6, 2020, 7:58pm UTC](https://forums.unrealengine.com/t/concatenate-text-in-debug/475507/1 "2020-12-06T19:58:50Z")

</div>

I’m trying to test my constructor with a debug message. The layer variable is a the variable I’m using in the for loop, so is of type int.

My code:

```
	UE_LOG(LogTemp, Warning, FText::Format(TEXT("Made Layer: "), FText::AsNumber(layer)));

```

You can probably tell what I’m trying to do, but in case it isn’t immediately obvious I’m trying to get the following output for each iteration, with the number incrementing with each iteration:

```
Made Layer: 0
```

---

<div class="post-metadata">

**Author:** ![Andrew\_Bindraw](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrew_bindraw/32/1008648_2.png) [@Andrew\_Bindraw](https://forums.unrealengine.com/u/Andrew_Bindraw)\
**Post date:** [December 7, 2020, 9:24am UTC](https://forums.unrealengine.com/t/concatenate-text-in-debug/475507/2 "2020-12-07T09:24:10Z")

</div>

Hi. Check this:

```
const FText Msg = FText::Format(FText::FromString(TEXT("Made Layer: {0}")), FText::AsNumber(layer));
UE_LOG(LogTemp, Warning, TEXT("%s"), *Msg.ToString());
```
