What is the process of declaring a log category that can be accessed with the UE_LOG macro, without having to manually include some file in any class that needs to use this log category?
I have tried including it in the module .h and .cpp, but I get linking errors in some cases, like trying to include the module .h in files of another module. Sometimes things compile and run in-editor, but compiling fails for a packaged build.
Logging is an extremely basic function, and I can’t figure out how to use it without strange issues. And I haven’t found good information on it either, it’s always very basic instructions on making a log category work within one class, with no re-use instructions for a more general category.
I would very much like to be able to use a custom log category without extra include hassle, like LogTemp, which is somehow accessible in any class of any module, no linking errors.
Any help would be appreciated.