Last active
March 26, 2016 14:26
-
-
Save dorgonman/0db4138c2cee95b51582 to your computer and use it in GitHub Desktop.
UE4_plus_horizon_log.init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void logMessageImplement(const std::string& msg) { | |
FString str = UTF8_TO_TCHAR(msg.c_str()); | |
UE_LOG(LogTemp, Log, TEXT("%s"), *str); | |
// FPlatformMisc::LowLevelOutputDebugString(TEXT("HorizonLogBasicBackend test")); | |
//FPlatformMisc::LowLevelOutputDebugString(UTF8_TO_TCHAR(msg.c_str())); | |
} | |
FString savedPath = FPaths::ConvertRelativePathToFull(FPaths::GameLogDir()); | |
std::string logFilePath = std::string(TCHAR_TO_UTF8(*savedPath)) + "HorizonLog.txt"; | |
horizon::HorizonCore::GetInstance()->initDefaultLog(logFilePath, std::bind(logMessageImplement, std::placeholders::_1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment