# Clear output log?

**URL:** <https://forums.unrealengine.com/t/clear-output-log/37666>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 5, 2015, 6:21pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666 "2015-08-05T18:21:26Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a1d09d07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a1d09d07](https://forums.unrealengine.com/u/anonymous_user_a1d09d07)\
**Post date:** [August 5, 2015, 6:21pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/1 "2015-08-05T18:21:26Z")

</div>

The output log window seems to be very inefficient in displaying its data. Right now mine apparently has too much in it and just trying to view it causes the editor to freeze for several seconds. As long as it is displayed the frame rate makes the editor unusable.

Is there a way to clear its data without restarting?

---

<div class="post-metadata">

**Author:** ![TheFoyer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheFoyer](https://forums.unrealengine.com/u/TheFoyer)\
**Post date:** [August 5, 2015, 6:44pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/2 "2015-08-05T18:44:15Z")

</div>

I just want to add that my output log is always open and stays so for hours on end with tons of information and I haven’t noticed any performance issues. Curious what are your hardware specs?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a1d09d07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a1d09d07](https://forums.unrealengine.com/u/anonymous_user_a1d09d07)\
**Post date:** [August 5, 2015, 6:58pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/3 "2015-08-05T18:58:35Z")

</div>

I’ve had issues with blueprint spewing thousands of lines per second into my log ([Wire trace not injected before jump? - Blueprint - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?79302-Wire-trace-not-injected-before-jump)), so I think that I probably have more entries than you 🙂

That said, I have found in general that Slate will spend inordinate amounts of render cycle time in drawing large amounts of data. It might be the GPUs we have in the studio, since unfortunately the machines are built for VFX software which as strange as it sounds is almost at odds with a game engine, since they tend to use workstation class cards instead of gaming cards. The machines are quite strong except for that.

Intel Xeon E5-1650v2 @3.5ghz (12 cores)  
64GB RAM  
NVidia Quadro K4000  
Windows 7x64

---

<div class="post-metadata">

**Author:** ![TheFoyer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheFoyer](https://forums.unrealengine.com/u/TheFoyer)\
**Post date:** [August 5, 2015, 7:27pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/4 "2015-08-05T19:27:27Z")

</div>

\> thousands of lines per second into my log

Ah, ok then 🙂

---

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [August 5, 2015, 7:41pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/5 "2015-08-05T19:41:27Z")

</div>

You can right click -\> Clear log.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a1d09d07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a1d09d07](https://forums.unrealengine.com/u/anonymous_user_a1d09d07)\
**Post date:** [August 5, 2015, 9:22pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/6 "2015-08-05T21:22:09Z")

</div>

> [@Jamendxman3;349309](#):
>
> You can right click -\> Clear log.

Well don’t I feel like the idiot now. I swear I had looked there first! Guess I just didn’t see it ☹

Got it now though so thanks!

---

<div class="post-metadata">

**Author:** ![tas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tas](https://forums.unrealengine.com/u/tas)\
**Post date:** [October 6, 2015, 4:46am UTC](https://forums.unrealengine.com/t/clear-output-log/37666/7 "2015-10-06T04:46:14Z")

</div>

does anybody know if we can clear log automatically at each time level is played ? couldnt find any suitable command to execute at Begin Play.

---

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [October 6, 2015, 5:57am UTC](https://forums.unrealengine.com/t/clear-output-log/37666/8 "2015-10-06T05:57:12Z")

</div>

> [@tas;393909](#):
>
> does anybody know if we can clear log automatically at each time level is played ? couldnt find any suitable command to execute at Begin Play.

I honestly don’t know, but if I had to guess, it would have something to do with the “con.MinLogVerbosity” command.

---

<div class="post-metadata">

**Author:** ![Hirox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hirox](https://forums.unrealengine.com/u/Hirox)\
**Post date:** [December 21, 2016, 7:38am UTC](https://forums.unrealengine.com/t/clear-output-log/37666/10 "2016-12-21T07:38:48Z")

</div>

> [@Jamendxman3;349309](#):
>
> You can right click -\> Clear log.

Anyone know how to access this “Clear log” through c++ or console?

I tracked back to a class called “SOutputLog” but don’t think I can work anything out from there.  
Two things I’d like to achieve.

1. Clear Log when I hit Play (“Clear Log” on BeginPlay)
2. Clear Log whenever I press alt+ctrl+c  
I always use this shortcut combination in my past game engines and Unity projects and I’d like do the same for Unreal.

Anyone from Unreal dev team on the forum?

---

<div class="post-metadata">

**Author:** ![Reapazor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/reapazor/32/1158510_2.png) [@Reapazor](https://forums.unrealengine.com/u/Reapazor)\
**Post date:** [August 18, 2017, 10:01pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/11 "2017-08-18T22:01:19Z")

</div>

This ever get fixed? I could see a use for it just to keep things clean.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_62e0f51e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_62e0f51e](https://forums.unrealengine.com/u/anonymous_user_62e0f51e)\
**Post date:** [April 8, 2020, 1:18pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/12 "2020-04-08T13:18:58Z")

</div>

Was this ever fixed? I would really love to have my output log cleared automatically because it is really inefficient and makes debugging in the editor nearly impossible sometimes.

---

<div class="post-metadata">

**Author:** ![albino\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@albino\_1](https://forums.unrealengine.com/u/albino_1)\
**Post date:** [August 11, 2020, 11:07pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/13 "2020-08-11T23:07:51Z")

</div>

Necro because this is the first thing to pop up on google for this question.

–\>\*\* To automatically clear on play : on the output log window, bottom right \> View options \> Clear on PIE (Play in editor)\*\*

---

<div class="post-metadata">

**Author:** ![SeldinG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/selding/32/709346_2.png) [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Post date:** [October 2, 2022, 4:32am UTC](https://forums.unrealengine.com/t/clear-output-log/37666/14 "2022-10-02T04:32:59Z")

</div>

Yes this “works” until something new is entered then all the old cleared out data is back. Kind of annoying, actually.

---

<div class="post-metadata">

**Author:** ![Heerbann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/heerbann/32/595151_2.png) [@Heerbann](https://forums.unrealengine.com/u/Heerbann)\
**Post date:** [January 6, 2024, 10:42am UTC](https://forums.unrealengine.com/t/clear-output-log/37666/15 "2024-01-06T10:42:31Z")

</div>

I was interested in clearing the log with c++. it seems that is not possible at the moment.

You only have access to the very lacklustre interface of FOutputLogModule which doesnt offer any functionally to clear the log in the first place. However, you can get access to the underlying SWidget (SOutputLog) which does exactly this. But it is not exported and thus it gives linking errors.  
The only way to achieve this would making a carbon copy of the SOutputLog class and cast it to this. But that is hackery.

Seems epic would need to change some things on their end first.

---

<div class="post-metadata">

**Author:** ![ArcReed3215](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arcreed3215/32/607037_2.png) [@ArcReed3215](https://forums.unrealengine.com/u/ArcReed3215)\
**Post date:** [January 7, 2024, 2:56am UTC](https://forums.unrealengine.com/t/clear-output-log/37666/16 "2024-01-07T02:56:53Z")

</div>

Hi, I have a question.  
What are you printing in this output log. Are you spamming messages via tick? Do you have tons of functionality that log a message? Have you tried other debuging options that don’t require the output log?

I’m asking because once you package your game, log messages aren’t usually shown. Having tons of log messages causes lots of latency in the game/project which is never good. I’m also asking because I know of some good ways to debug without spamming the output so if your doing something different then maybe there is no alternative.

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![Omar\_Nader](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/omar_nader/32/968940_2.png) [@Omar\_Nader](https://forums.unrealengine.com/u/Omar_Nader)\
**Post date:** [May 8, 2024, 7:20am UTC](https://forums.unrealengine.com/t/clear-output-log/37666/17 "2024-05-08T07:20:05Z")

</div>

I know this thread is a bit old, but I’ve figured out a way to clear the output log using C++, it requires some setup though…

in _"YourProjectName"Editor.Target.cs_ file, add _“OutputLog”_ module to public and private dependency names as follows:

```auto
.
.
.
		PublicDependencyModuleNames.AddRange(new string[]
		{
			"OutputLog",
		});
		
		PrivateDependencyModuleNames.AddRange(new string[]
		{
			"OutputLog",
		});
.
.
.

```

Declare a static function in a blueprint function library…

**UMyBlueprintFunctionLibrary.h**

```auto
UCLASS()
class YourProjectName_API UMyBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()

	UFUNCTION(BlueprintCallable)
	static void ClearOutputLog();
}

```

Now, in the respective .cpp file, it’s important to add the following dependencies:  
_(otherwise, the UBT will throw linking errors)_

```auto
#include "OutputLog/Public/OutputLogModule.h"
#include "Developer/OutputLog/Private/SOutputLog.h"
#include "Developer/OutputLog/Private/SOutputLog.cpp"
#include "Developer/OutputLog/Private/OutputLogStyle.h"
#include "Developer/OutputLog/Private/OutputLogStyle.cpp"

```

Next, implement the static function as follows:

```auto
void UMyBlueprintFunctionLibrary::ClearOutputLog()
{
	// Check if the module is loaded before accessing it...
	if (FModuleManager::Get().IsModuleLoaded("OutputLog"))
	{
		const FOutputLogModule& OutputLogModule = FModuleManager::GetModuleChecked< FOutputLogModule >(TEXT("OutputLog"));
		
		// Cast the underlying slate of OutputLogModule to SOutputLog...
		if (const auto OutputLog = StaticCastSharedPtr<SOutputLog>(OutputLogModule.GetOutputLog()); OutputLog.IsValid())
		{
			// Clear the output log...
			if (OutputLog->CanClearLog())
			{
				OutputLog->OnClearLog();
			}
		}
	}
}

```

That’s all.

You could then call this function in your code or blueprints whenever you want the OutputLog to be cleared.

I hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![Omar\_Nader](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/omar_nader/32/968940_2.png) [@Omar\_Nader](https://forums.unrealengine.com/u/Omar_Nader)\
**Post date:** [May 8, 2024, 7:22am UTC](https://forums.unrealengine.com/t/clear-output-log/37666/18 "2024-05-08T07:22:06Z")

</div>

> [@Clear output log?](https://forums.unrealengine.com/t/clear-output-log/37666/17):
>
> I know this thread is a bit old, but I’ve figured out a way to clear the output log using C++, it requires some setup though… in "YourProjectName"Editor.Target.cs file, add “OutputLog” module to public and private dependency names as follows: . . . PublicDependencyModuleNames.AddRange(new string[] { "OutputLog", }); PrivateDependencyModuleNames.AddRange(new string[] { "OutputLog", }); . . . Declare a static function in a blueprint function library… UMyBlueprintFunctionLi…

---

<div class="post-metadata">

**Author:** ![nasimnaji](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nasimnaji](https://forums.unrealengine.com/u/nasimnaji)\
**Post date:** [September 18, 2024, 8:29pm UTC](https://forums.unrealengine.com/t/clear-output-log/37666/19 "2024-09-18T20:29:46Z")

</div>

I get linker errors when including the .cpp files and when including the header files only I get an error saying onclearlog and canclearlog are missing external references. how can I fix this and thanks in advance
