lucashaozh / GitalkBlogRepo

0 stars 0 forks source link

UELogSystem | Lucas的博客 #49

Open lucashaozh opened 2 years ago

lucashaozh commented 2 years ago

https://lucas-hao.github.io/2022/07/27/gamegraphics/uelogsystem/#more

日志系统 设置项目自定义日志Category 在ProjName.h中添加DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity);,在ProjName.cpp中添加DEFINE_LOG_CATEGORY(CategoryName);。 实际上这两行宏展开后就是在头文件中申明了一个外部的结