Daily Unreal Column #69 - Logging selected category to a file
As our projects grow over time, the amount of logs in the output can be overwhelming to say at least. Here is how to make your life much easier.
Having a lot of logs in your game can be problematic. With a lot of data it gets harder and harder to find information you are looking for. However, as long as your project is making a good use of different log categories, it is possible to filter out the logs you are interested in very easily.
When launching an editor or a game, you can pass -LogCategoryFiles launch parameter that allows you to specify a log category, and associate it with a custom file name. This way you can redirect all the logs to a single file without having noise from other categories.
Here is an example:
-LogCategoryFiles="LogTemp=LogTempLogs.txt, LogBehaviorTre=BTLogs.txt"
Of course, this way you lose benefit to see all the logs in order, but if you are only interested in seeing logs from a specific category, this is the way.