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_TARGET 00006 #define LEAN_LOGGING_LOG_TARGET 00007 00008 #include "../lean.h" 00009 #include "../strings/types.h" 00010 #include "../tags/noncopyable.h" 00011 00012 namespace lean 00013 { 00014 namespace logging 00015 { 00016 00017 class log; 00018 00020 class log_target : public noncopyable 00021 { 00022 protected: 00023 // Disallow interface construction / destruction 00024 log_target() { } 00025 ~log_target() { } 00026 00027 public: 00029 virtual void print(const char_ntri &message) = 0; 00030 }; 00031 00032 } // namespace 00033 00034 using logging::log_target; 00035 00036 } // namespace 00037 00038 #endif