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