glc_tracelog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef GLC_TRACELOG_H_
00024 #define GLC_TRACELOG_H_
00025
00026 #include "glc_log.h"
00027 #include "glc_config.h"
00028 #include <QStringList>
00029 #include <QMutex>
00030
00033
00034
00035 class GLC_LIB_EXPORT GLC_TraceLog : public GLC_Log
00036 {
00038
00040
00041 private:
00043 GLC_TraceLog(const QString& fullLogFileName);
00044 public:
00046 virtual ~GLC_TraceLog();
00048
00049
00051
00052 public:
00054 static GLC_TraceLog* instance(QString baseName= QString());
00055
00057 static bool isEmpty();
00058
00060 static bool isEnable();
00061
00063
00064
00066
00067 public:
00069 static void addTrace(const QStringList& traceDescription);
00070
00072 static void close();
00073
00075 static void setEnabled(bool enable);
00076
00078
00079
00081
00083
00084 public:
00086 void writeHeader();
00087
00089
00091
00093 private:
00095 static GLC_TraceLog* m_pTraceLog;
00096
00098 static QMutex m_Mutex;
00099
00101 static bool m_IsEnable;
00102
00103 };
00104
00105 #endif