00001 00015 #pragma once 00016 00017 #include "TStd.h" 00018 00019 #include "RegistryKey.h" 00020 #include "IGenericLogManager.h" 00021 00022 namespace Nvidia { 00023 namespace Logging { 00024 00026 class DebugOutputLogManager : public IGenericLogManager<std::tstring> 00027 { 00028 public: 00030 DebugOutputLogManager(); 00032 DebugOutputLogManager(const RegistryKey& key); 00034 virtual void ManageMessage(const std::tstring& message); 00035 00036 }; 00037 00038 inline DebugOutputLogManager::DebugOutputLogManager() {} 00039 00040 inline DebugOutputLogManager::DebugOutputLogManager(const RegistryKey&) {} 00041 00042 inline void DebugOutputLogManager::ManageMessage(const std::tstring& message) 00043 { 00044 OutputDebugString((message + _T("\n")).c_str()); 00045 } 00046 00047 } 00048 }