Adding comments and changing QApplication org/app names

Signed-off-by: Dayo Lawal <lawalfua@amazon.com>
This commit is contained in:
Dayo Lawal
2021-06-24 14:49:09 -05:00
committed by Dayo Lawal
parent 6f44393f3a
commit c63c42c7f4
6 changed files with 18 additions and 15 deletions
@@ -41,7 +41,7 @@ namespace AzToolsFramework
return false;
}
void AzQtTraceLogger::WriteStartupLog(char name[])
void AzQtTraceLogger::WriteStartupLog(const AZStd::string& logFileName)
{
using namespace AzFramework;
@@ -62,7 +62,7 @@ namespace AzToolsFramework
fileIO->CreatePath("@log@");
AZStd::string logPath;
StringFunc::Path::Join(logDirectory.c_str(), name, logPath);
StringFunc::Path::Join(logDirectory.c_str(), logFileName.c_str(), logPath);
m_logFile.reset(aznew LogFile(logPath.c_str()));
if (m_logFile)
@@ -17,12 +17,15 @@
namespace AzToolsFramework
{
// Connects and disconnects TraceMessageBus and allows for logging for O3DEToolsApplications
class AzQtTraceLogger : public AZ::Debug::TraceMessageBus::Handler
{
public:
AzQtTraceLogger();
~AzQtTraceLogger();
void WriteStartupLog(char name[]);
//! Intalize logging for O3DEToolsApplications
void WriteStartupLog(const AZStd::string& logFileName);
protected:
//////////////////////////////////////////////////////////////////////////