Move CLog-related implementation to log.cpp.