00001 /*************************************************************************** 00002 logger.h - description 00003 ------------------- 00004 begin : Son Okt 19 2003 00005 copyright : (C) 2003 by Eggert Ehmke 00006 email : eggert.ehmke@berlin.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef LOGGER_H 00019 #define LOGGER_H 00020 00021 #include <ntqstring.h> 00022 #include <ntqfile.h> 00023 #include <ntqtextstream.h> 00024 00029 class Logger 00030 { 00031 public: 00032 Logger () {}; 00033 ~Logger (); 00034 static TQTextStream* logstream; 00035 static TQFile logfile; 00036 static void flush(); 00037 }; 00038 00039 TQTextStream& Logger (); 00040 00041 #endif