This is what works for me. Hopefully it will help you as well.
In your project header file (MyProject.h), add the following:
DECLARE_LOG_CATEGORY_EXTERN(LogMyGame, Warning, All);
In your project cpp file (MyProject.cpp), add the following:
DEFINE_LOG_CATEGORY(LogMyGame);
Hope this helps.