- Replace DebugLog() with LogWithArgs(int nLevel, const WCHAR* format, ... ), so that variable strings can be logged but the log level can be set to those other than LOG_DEBUG

- Note: DebugLog() is still in the code as I was not sure whether it is required to maintain Litestep interoperability
- Replaced instances of LOG_DEBUG where other log levels would be more appropriate
This commit is contained in:
JamesAC
2010-12-19 23:06:13 +00:00
parent 56d472d5b5
commit c50f1c27f2
27 changed files with 211 additions and 187 deletions

View File

@ -156,7 +156,7 @@ void CMeasure::ReadConfig(CConfigParser& parser, const WCHAR* section)
}
if (!ParseSubstitute(subs))
{
DebugLog(L"Incorrect substitute string: %s", subs.c_str());
LogWithArgs(LOG_WARNING, L"Incorrect substitute string: %s", subs.c_str());
}
std::wstring group = parser.ReadString(section, L"Group", L"");
@ -697,5 +697,5 @@ CMeasure* CMeasure::Create(const WCHAR* measure, CMeterWindow* meterWindow)
*/
void CMeasure::ExecuteBang(const WCHAR* args)
{
DebugLog(L"[%s] doesn't support this bang: %s", m_Name.c_str(), args);
LogWithArgs(LOG_WARNING, L"[%s] doesn't support this bang: %s", m_Name.c_str(), args);
}