+
+ // if we neither use syslog nor have a logfile we log to stdout
+
+ if (Quassel::logFile() || !Quassel::logToSyslog()) {
+ _buffer.prepend(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss "));
+
+ QTextStream out(stdout);
+ if (Quassel::logFile() && Quassel::logFile()->isOpen()) {
+ _buffer.remove(QChar('\n'));
+ out.setDevice(Quassel::logFile());
+ }
+
+ out << _buffer << endl;
+ }