Pol  Revision:740
clib/logfile.h
Go to the documentation of this file.
00001 /*
00002 History
00003 =======
00004 
00005 2009/08/25 Shinigami: STLport-5.2.1 fix: Log and Log2 changed little bit
00006 2009/10/14 Turley:    added bool LogfileTimestampEveryLine
00007 
00008 Notes
00009 =======
00010 
00011 */
00012 
00013 #ifndef __CLIB_LOGFILE_H
00014 #define __CLIB_LOGFILE_H
00015 
00016 #include <stdio.h>
00017 #include <mutex>
00018 namespace Pol {
00019   namespace Clib {
00020     extern bool LogfileTimestampEveryLine;
00021     extern FILE *logfile;
00022     extern std::mutex _logfile_mutex;
00023     int OpenLogFileName( const char* namebase, bool rollover );
00024     int OpenLogFile( void );
00025     void CloseLogFile( void );
00026     void Log( const char *fmt, ... );
00027     void Log2( const char *fmt, ... ); // outputs to stderr also
00028   }
00029 }
00030 
00031 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines