Set default DEBUG when produce a debug build

This commit is contained in:
sum2012 2014-02-16 12:09:59 +08:00
parent d96fc0858c
commit de78674d62

View File

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