+ syslog(LOG_USER & prio, "%s", qPrintable(_buffer));
+ }
+#endif
+
+ _buffer.prepend(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss "));
+
+ // if we don't have a logfile we log to stdout
+
+ QTextStream out(stdout);
+ if(Quassel::logFile() && Quassel::logFile()->isOpen()) {
+ _buffer.remove(QChar('\n'));
+ out.setDevice(Quassel::logFile());