The Logger Plugin for Unreal Engine allows you to easily log info to file and via on-screen messages. This plugin supports the following log types
- Errors
- Warnings
- Info
- Trace
- Download the latest release from GitHub
- Navigate to
C:\Program Files\Epic Games\UE_{VERSION}\Engine\Plugins\
- Create a
Marketplace
folder if needed - Extract the release and copy to the
Marketplace
folder - Open Unreal Engine
- Click on
Edit > Plugins
- Enable the plugin under the
Installed > Unreal Toolbox
category - Restart Unreal Engine
There is 2 different logging methods. Both of these are used each time you log anything:
On-screen messages
- These messages will appear on-screen for 5 seconds (only used when running through the editor)File
- Everything you log is also written to a file. The file name is the current date and a new file is created each day the game is played. All log files are stored in the root of the project under theLogs
director
You need to provide the following info regardless of if you're logging info through Blueprints or C++:
Tag
- This is usually the function or class name. It allows you to find out exactly where this is being loggedText
- The actual text that should be logged out
You can easily log info in Blueprints by added one of the following nodes
Unreal Toolbox > Logger > Error
Unreal Toolbox > Logger > Warning
Unreal Toolbox > Logger > Info
Unreal Toolbox > Logger > Trace
The logging is handled through a static class/functions. You can log info by using the following functions:
ULog::Error(const FString Tag, const FString Text)
ULog::Warning(const FString Tag, const FString Text)
ULog::Info(const FString Tag, const FString Text)
ULog::Trace(const FString Tag, const FString Text)