mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 23:40:39 +00:00
Merge pull request #5479 from sum2012/log
Enable produce DEBUG_LOG rather than INFO_LOG in Windows who don't need install Visual Studio Express
This commit is contained in:
commit
8da651b6c1
@ -96,7 +96,7 @@ void GenericLog(LOGTYPES_LEVELS level, LOGTYPES_TYPE type,
|
||||
#endif
|
||||
;
|
||||
|
||||
#if defined(LOGGING) || defined(_DEBUG) || defined(DEBUGFAST)
|
||||
#if defined(LOGGING) || defined(_DEBUG) || defined(DEBUGFAST) || defined(_WIN32)
|
||||
#define MAX_LOGLEVEL DEBUG_LEVEL
|
||||
#else
|
||||
#ifndef MAX_LOGLEVEL
|
||||
|
@ -183,7 +183,6 @@ void LogManager::Log(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const
|
||||
char formattedTime[13];
|
||||
Common::Timer::GetTimeFormatted(formattedTime);
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifdef _WIN32
|
||||
static const char sep = '\\';
|
||||
#else
|
||||
@ -197,7 +196,6 @@ void LogManager::Log(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const
|
||||
if (fileshort != file)
|
||||
file = fileshort + 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
char *msgPos = msg;
|
||||
if (hleCurrentThreadName != NULL) {
|
||||
@ -233,7 +231,11 @@ LogChannel::LogChannel(const char* shortName, const char* fullName, bool enable)
|
||||
: enable_(enable) {
|
||||
strncpy(m_fullName, fullName, 128);
|
||||
strncpy(m_shortName, shortName, 32);
|
||||
#if defined(_DEBUG)
|
||||
level_ = LogTypes::LDEBUG;
|
||||
#else
|
||||
level_ = LogTypes::LINFO;
|
||||
#endif
|
||||
}
|
||||
|
||||
// LogContainer
|
||||
|
Loading…
Reference in New Issue
Block a user