lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
00001 /*****************************************************/ 00002 /* lean Logging (c) Tobias Zirr 2011 */ 00003 /*****************************************************/ 00004 00005 #ifndef LEAN_LOGGING_LOG_DEBUGGER 00006 #define LEAN_LOGGING_LOG_DEBUGGER 00007 00008 #include "../lean.h" 00009 #include "../strings/types.h" 00010 #include "log_target.h" 00011 00012 namespace lean 00013 { 00014 namespace logging 00015 { 00016 00018 LEAN_MAYBE_EXPORT void print_debugger(const char_ntri &message); 00019 00021 class log_debugger : public log_target 00022 { 00023 private: 00024 log_debugger() { } 00025 ~log_debugger() { } 00026 00027 public: 00029 LEAN_MAYBE_EXPORT static log_debugger& get(); 00030 00032 void print(const char_ntri &message) { print_debugger(message); } 00033 }; 00034 00035 } // namespace 00036 00037 using logging::log_debugger; 00038 00039 } // namespace 00040 00041 #ifdef LEAN_INCLUDE_LINKED 00042 #include "source/log_debugger.cpp" 00043 #endif 00044 00045 #endif