WriteStartupLog() implemented in base class (unresolved external)
Signed-off-by: Dayo Lawal <lawalfua@amazon.com>
This commit is contained in:
@@ -34,7 +34,12 @@ namespace AzQtComponents
|
||||
|
||||
QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates));
|
||||
|
||||
// Must be set before QApplication is initialized, so that we support HighDpi monitors, like the Retina displays
|
||||
|
||||
}
|
||||
|
||||
void AzQtApplication::setDpiScaling()
|
||||
{
|
||||
// Must be set before QApplication is initialized, so that we support HighDpi monitors, like the Retina displays
|
||||
// on Windows 10
|
||||
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
|
||||
@@ -24,8 +24,9 @@ namespace AzQtComponents
|
||||
{
|
||||
public:
|
||||
AzQtApplication(int& argc, char** argv);
|
||||
void static setDpiScaling();
|
||||
|
||||
private:
|
||||
protected:
|
||||
AZ_PUSH_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
||||
AZStd::unique_ptr<AzQtTraceLogger> m_traceLogger;
|
||||
AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace AzQtComponents
|
||||
return false;
|
||||
}
|
||||
|
||||
void AzQtTraceLogger::WriteStartupLog()
|
||||
void AzQtTraceLogger::WriteStartupLog(char name[])
|
||||
{
|
||||
using namespace AzFramework;
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace AzQtComponents
|
||||
fileIO->CreatePath("@log@");
|
||||
|
||||
AZStd::string logPath;
|
||||
StringFunc::Path::Join(logDirectory.c_str(), "MaterialEditor.log", logPath);
|
||||
StringFunc::Path::Join(logDirectory.c_str(), name, logPath);
|
||||
|
||||
m_logFile.reset(aznew LogFile(logPath.c_str()));
|
||||
if (m_logFile)
|
||||
|
||||
@@ -23,14 +23,14 @@ namespace AzQtComponents
|
||||
AzQtTraceLogger();
|
||||
~AzQtTraceLogger();
|
||||
|
||||
void WriteStartupLog(char name[]);
|
||||
|
||||
protected:
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// AZ::Debug::TraceMessageBus::Handler overrides...
|
||||
bool OnOutput(const char* window, const char* message) override;
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void WriteStartupLog();
|
||||
|
||||
struct LogMessage
|
||||
{
|
||||
public:
|
||||
@@ -40,6 +40,5 @@ namespace AzQtComponents
|
||||
AZStd::vector<LogMessage> m_startupLogSink;
|
||||
AZStd::unique_ptr<AzFramework::LogFile> m_logFile;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user