Enable produce DEBUG_LOG rather tha INFO_LOG without install Visual studio express in windows

Default is INFO_LOG
More people can post DEBUG_LOG.
This commit is contained in:
sum2012 2014-02-16 12:04:31 +08:00
parent 96a19ea982
commit d96fc0858c
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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,7 @@ LogChannel::LogChannel(const char* shortName, const char* fullName, bool enable)
: enable_(enable) {
strncpy(m_fullName, fullName, 128);
strncpy(m_shortName, shortName, 32);
level_ = LogTypes::LDEBUG;
level_ = LogTypes::LINFO;
}
// LogContainer