Rework debug logging
Issue #60
new
There is a lot of code like this littered all over the place:
#ifdef JA2BETAVERSION
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_ERROR, L"Turning off AI...
if (gfTurnBasedAI)
{
DebugAI( String("Ending turn for %d ...
DebugMsg( TOPIC_JA2, DBG_LEVEL_3, String("Attack busy count ...
It would be great to develop a unifed scheme of dealing with such debug messages.
Requirements: - logging to console - logging to a file - ? logging to the screen - ability to turn logging off and on at run time, not compile time