00001 00002 00003 00004 00005 00006 00007 00008 #include "NativeFeatureIncludes.h" 00009 #if _RAKNET_SUPPORT_LogCommandParser==1 && _RAKNET_SUPPORT_PacketLogger==1 00010 00011 #ifndef __PACKET_CONSOLE_LOGGER_H_ 00012 #define __PACKET_CONSOLE_LOGGER_H_ 00013 00014 #include "PacketLogger.h" 00015 class LogCommandParser; 00016 00019 class RAK_DLL_EXPORT PacketConsoleLogger : public PacketLogger 00020 { 00021 public: 00022 PacketConsoleLogger(); 00023 // Writes to the command parser used for logging, which is accessed through a secondary communication layer (such as Telnet or RakNet) - See ConsoleServer.h 00024 virtual void SetLogCommandParser(LogCommandParser *lcp); 00025 virtual void WriteLog(const char *str); 00026 protected: 00027 LogCommandParser *logCommandParser; 00028 }; 00029 00030 #endif 00031 00032 #endif // _RAKNET_SUPPORT_*