2014-08-22 16:58:50 +02:00
|
|
|
#include "stdafx.h"
|
2014-08-22 23:15:02 +02:00
|
|
|
#include "Emu/System.h"
|
2015-10-25 15:44:49 +01:00
|
|
|
#include "Emu/state.h"
|
2014-08-22 16:58:50 +02:00
|
|
|
#include "LogBase.h"
|
|
|
|
|
|
2014-08-22 23:15:02 +02:00
|
|
|
bool LogBase::CheckLogging() const
|
|
|
|
|
{
|
2015-10-26 22:09:31 +01:00
|
|
|
return rpcs3::config.misc.log.hle_logging.value() || m_logging;
|
2014-08-22 23:15:02 +02:00
|
|
|
}
|
|
|
|
|
|
2015-09-18 00:41:14 +02:00
|
|
|
void LogBase::LogOutput(LogType type, std::string text) const
|
2014-08-22 16:58:50 +02:00
|
|
|
{
|
2014-08-23 16:51:51 +02:00
|
|
|
switch (type)
|
|
|
|
|
{
|
2015-01-18 23:54:56 +01:00
|
|
|
case LogNotice: LOG_NOTICE(HLE, GetName() + ": " + text); break;
|
|
|
|
|
case LogSuccess: LOG_SUCCESS(HLE, GetName() + ": " + text); break;
|
|
|
|
|
case LogWarning: LOG_WARNING(HLE, GetName() + ": " + text); break;
|
2015-07-10 16:45:16 +02:00
|
|
|
case LogError: LOG_ERROR(HLE, GetName() + ": " + text); break;
|
2015-01-18 23:54:56 +01:00
|
|
|
case LogTodo: LOG_ERROR(HLE, GetName() + " TODO: " + text); break;
|
2014-09-08 16:56:47 +02:00
|
|
|
}
|
|
|
|
|
}
|