5 LogNT* LogNT::instance = NULL;
17 LogNT* LogNT::getInstance()
22 bool LogNT::init(const std::string& tfileName, bool tenabled)
24 if (!tenabled) return true;
27 fileName = tfileName; // Keep the filename for later?
29 if (!fileName.compare("stdout"))
31 outstream = &std::cout;
36 logFile.open(fileName);
37 if (!logFile.is_open()) return false;