-Log
(you must create a shortcut to the Editor executable and add -Log
to the end).GameCommandLine=-log
in your Engine INI file. If no logging is visible, add the -Log
command line option as per the instructions for In-Game logging above..ini
verbosity 4. Runtime-verbosity.CompileTimeVerbosity
parameter of DECLARE_LOG_CATEGORY_EXTERN
it is also valid to use All
(functionally the same as using VeryVerbose
) or NoLogging
(functionally the same as using Fatal
).DECLARE_LOG_CATEGORY_EXTERN
and DEFINE_LOG_CATEGORY
go in YourGame.h and YourGame.cpp respectively.CategoryName
is simply the name for the new category you are defining.DefaultVerbosity
is the verbosity level used when one is not specified in the ini files or on the command line. Anything more verbose than this will not be logged.CompileTimeVerbosity
is the maximum verbosity to compile in the code. Anything more verbose than this will not be compiled.UE_LOG
prints out which log category is displaying a message.CompileTimeVerbosity
. In debugging interaction with Unreal code it might be helpful to turn up the verbosity of Unreal code in DefaultEngine.ini under [Core.Log]
by adding an entry like LogOnline=Verbose
.%s
strings are wanted as TCHAR*
by Log
, so use *FString()
print();
inside to all.~
key in Unreal brings up the client console.PlayerController
class you can print a message to this console, which has the advantage of being a completely different logging space which does not require tabbing out of the game to view easilyLog list
- list all log categoriesLog list [string]
- list all log categories containing a substringLog reset
- reset all log categories to their boot-time defaultLog [cat]
- toggle the display of the category [cat]Log [cat] off
- disable display of the category [cat]Log [cat] on
- resume display of the category [cat]Log [cat] [level]
- set the verbosity level of the category [cat]Log [cat] break
- toggle the debug break on display of the category [cat]-LogCmds=\"[arguments],[arguments]...\"
- applies a list of console commands at boot time-LogCmds=\"foo verbose, bar off\"
- turns on the foo category and turns off the bar categoryset UE-CmdLineArgs=\"-LogCmds=foo verbose breakon, bar off\"