Changeset 7ec3dd1 in nscp for service/NSClient++.h
- Timestamp:
- 06/16/11 23:00:44 (2 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- e11d494
- Parents:
- 3bdaf18
- File:
-
- 1 edited
-
service/NSClient++.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
service/NSClient++.h
r3bdaf18 r7ec3dd1 96 96 //boost::shared_mutex m_mutexRWcmdDescriptions; 97 97 //cmdMap cmdDescriptions_; 98 enum log_status {log_ unknown, log_looking, log_debug, log_nodebug };98 enum log_status {log_state_unknown, log_state_looking, log_state_debug, log_state_nodebug }; 99 99 log_status debug_; 100 100 std::wstring context_; … … 117 117 typedef std::multimap<std::wstring,std::wstring> plugin_alias_list_type; 118 118 // c-tor, d-tor 119 NSClientT(void) : debug_(log_ unknown), enable_shared_session_(false), commands_(this), channels_(this), next_plugin_id_(0), service_name_(DEFAULT_SERVICE_NAME) {119 NSClientT(void) : debug_(log_state_unknown), enable_shared_session_(false), commands_(this), channels_(this), next_plugin_id_(0), service_name_(DEFAULT_SERVICE_NAME) { 120 120 logger_master_.start_slave(); 121 121 } … … 123 123 void enableDebug(bool debug = true) { 124 124 if (debug) 125 debug_ = log_ debug;125 debug_ = log_state_debug; 126 126 else 127 debug_ = log_ nodebug;127 debug_ = log_state_nodebug; 128 128 } 129 129 … … 145 145 // Service API 146 146 static NSClient* get_global_instance(); 147 /* 147 148 void handle_error(unsigned int line, const char *file, std::wstring message) { 148 149 std::string s = nsclient::logger_helper::create_error(file, line, message); 149 150 reportMessage(s.c_str()); 150 151 } 152 */ 151 153 void handle_startup(std::wstring service_name); 152 154 void handle_shutdown(std::wstring service_name); … … 222 224 void load_all_plugins(int mode); 223 225 226 static void log_debug(const char* file, const int line, std::wstring message); 227 static void log_error(const char* file, const int line, std::wstring message); 228 static void log_error(const char* file, const int line, std::string message); 229 static void log_info(const char* file, const int line, std::wstring message); 230 231 224 232 225 233 private:
Note: See TracChangeset
for help on using the changeset viewer.








