00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00016 #ifndef _LOG4CPLUS_HELPERS_LOGLOG
00017 #define _LOG4CPLUS_HELPERS_LOGLOG
00018
00019 #include <log4cplus/config.h>
00020 #include <log4cplus/tstring.h>
00021 #include <log4cplus/helpers/pointer.h>
00022 #include <log4cplus/helpers/threads.h>
00023
00024
00025 namespace log4cplus {
00026 namespace helpers {
00027
00041 class LOG4CPLUS_EXPORT LogLog : public log4cplus::helpers::SharedObject {
00042 public:
00043
00047 static log4cplus::helpers::SharedObjectPtr<LogLog> getLogLog();
00048
00049
00053 void setInternalDebugging(bool enabled);
00054
00061 void setQuietMode(bool quietMode);
00062
00067 void debug(const log4cplus::tstring& msg);
00068
00074 void error(const log4cplus::tstring& msg);
00075
00081 void warn(const log4cplus::tstring& msg);
00082
00083
00084 virtual ~LogLog();
00085
00086
00087 LOG4CPLUS_MUTEX_PTR_DECLARE mutex;
00088
00089 private:
00090
00091 bool debugEnabled;
00092 bool quietMode;
00093 const log4cplus::tstring PREFIX;
00094 const log4cplus::tstring WARN_PREFIX;
00095 const log4cplus::tstring ERR_PREFIX;
00096
00097
00098 LogLog();
00099 LogLog(const LogLog&);
00100 };
00101
00102 }
00103 }
00104
00105
00106 #endif // _LOG4CPLUS_HELPERS_LOGLOG
00107