00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00023 #ifndef _LOG4CPLUS_HELPERS_LOGLOG
00024 #define _LOG4CPLUS_HELPERS_LOGLOG
00025
00026 #include "dcmtk/oflog/config.h"
00027 #include "dcmtk/oflog/tstring.h"
00028 #include "dcmtk/oflog/helpers/pointer.h"
00029 #include "dcmtk/oflog/helpers/threads.h"
00030
00031
00032 namespace log4cplus {
00033 namespace helpers {
00034
00048 class LOG4CPLUS_EXPORT LogLog
00049 : public virtual log4cplus::helpers::SharedObject
00050 {
00051 public:
00052
00056 static log4cplus::helpers::SharedObjectPtr<LogLog> getLogLog();
00057
00058
00062 void setInternalDebugging(bool enabled);
00063
00070 void setQuietMode(bool quietMode);
00071
00076 void debug(const log4cplus::tstring& msg);
00077
00083 void error(const log4cplus::tstring& msg);
00084
00090 void warn(const log4cplus::tstring& msg);
00091
00092
00093 virtual ~LogLog();
00094
00095
00096 LOG4CPLUS_MUTEX_PTR_DECLARE mutex;
00097
00098 private:
00099
00100 bool debugEnabled;
00101 bool quietMode;
00102
00103
00104 LogLog();
00105 LogLog(const LogLog&);
00106 };
00107
00108 }
00109 }
00110
00111
00112 #endif // _LOG4CPLUS_HELPERS_LOGLOG
00113