Hi,
You can access the console from inside the UE4 editor, Window > Developer Tools > Output Log. It appears as a separate tab next to the Content Browser.
To print a message from C++ code you need this:
UE_LOG(LogTemp, Warning, TEXT("Hello World!"));