cerr<<"Warning: Unable to stream to logfile "<<logfilename<<". Need to have called log.setLogFile. Therefore, no streaming to logfile will be performed"<<endl;
}
}
elsestream_to_logfile=in;
}
private:
constLogger&operator=(Logger&);
Logger(Logger&);
stringdir;
ofstreamlogfileout;
stringlogfilename;
boollogEstablished;
boolstream_to_logfile;
boolstream_to_cout;
template<classt>
friendLogger&operator<<(Logger&log,constt&obj);
};
classLogSingleton
{
public:
staticLogger&getInstance();
~LogSingleton(){deletelogger;}
/** hacked in utility provides a global counter for general use: */