We are using the method with the following signature for logging messages.
void CLog::WriteLog(char * lpszBuffer,...)
Sample Log entries are
pLog->WriteLog("Eneterd %s", __ FUNCTION__);
pLog->WriteLog("Error Code is %d", GetLastError());
Now we have a specific requirement to introduce unicode support in our code. What modifications should I make to easily introduce Unicode support? The code has thousands of such log entries?
or Should I leave the log entries as such?
Specify a utf-8 format for the log file. Odds are good that you won’t have to change a single line of logging code, byte values for any character in the ASCII character set are the same. You’ll be good for any English text that doesn’t use accented characters.
That is however not in the spirit of the request, I imagine. It defeats any mechanical way to verify that the source code is properly handling Unicode now. Talk to your supervisor or project manager.