I've turned the global log() function into a C++ stream. For a new binary, the method LogSingleton::SetInstance() must be called with a concrete object to setup logging. After that, you can log with
== log (LOG_TIMESTAMP) << "foo bar " << anInt << aString << endLog; == The log() and the endLog; are compulsory. You can also use the following syntax: log (LOG_TIMESTAMP) << "foo bar "; log (LOG_TIMESTAMP) << anInt; log (LOG_TIMESTAMP) << endLog; The current log() implementation now uses the LogSingleton implementation, which for setup.exe uses a concrete class LogFile. Once no code uses the old syntax, it will be removed. If you are building setup.exe code base using apps, LogFile may be appropriate if you are building a GUI app. It's probably not appropriate if you are not building a GUI app. Rob
