Logging
Enable Custom Logs
Need to include this assembly in your csproj:
Define Custom Log Categories
The [CustomLog]
attribute is used on a partial
(and preferably static
) class to define a custom log category, for the Unreal Engine output log.
The category's API will then generate automatically with methods such as Log
/ LogWarning
/ LogError
/ LogFatal
.
LogMyFirstLog
: Defaults toELogVerbosity.Display
when no verbosity is specified.LogMySecondLog
: Explicitly usesELogVerbosity.Verbose
.
Use the Log Categories
Here’s an example of how to log with your custom categories:
And they will show up like this in the output log in the engine:
Last updated