3 #include <QApplication>
11 void DebugOutputHandler( QtMsgType type, const char *msg ) {
14 logfile << QTime::currentTime().toString().toAscii().data() << " Debug: " << msg << "\n";
18 logfile << QTime::currentTime().toString().toAscii().data() << " Critical: " << msg << "\n";
22 logfile << QTime::currentTime().toString().toAscii().data() << " Warning: " << msg << "\n";
26 logfile << QTime::currentTime().toString().toAscii().data() << " Fatal: " << msg << "\n";
31 int main( int argc, char *argv[] )
33 #ifdef DEBUG_OUTPUT_TO_FILE
34 logfile.open( "/usr/var/qtmeetings.log", ios::app );
35 qInstallMsgHandler( DebugOutputHandler );
38 QApplication app( argc, argv );
39 Engine *engine = new Engine;