41 QDir dir = QFileInfo(filename).absoluteDir();
43 return dir.mkpath(dir.absolutePath());
63 return err(errmsg,
"Unable to create path to log file.");
67 newLogFile =
new QFile(filename);
68 if (!newLogFile->open(QFile::WriteOnly|QIODevice::Append|QIODevice::Text)) {
70 return err(errmsg, newLogFile->errorString());
103 return (
_file ?
_file->fileName() : QString());;
bool open(QString filename, QString *errmsg=0)
bool err(QString *str, const QString &errmsg)
bool createPathToFile(QString filename)
LogFile & operator<<(const QString &s)