mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
20 lines
444 B
C++
20 lines
444 B
C++
|
#include "PacketConsoleLogger.h"
|
||
|
#include "LogCommandParser.h"
|
||
|
|
||
|
PacketConsoleLogger::PacketConsoleLogger()
|
||
|
{
|
||
|
logCommandParser=0;
|
||
|
}
|
||
|
|
||
|
void PacketConsoleLogger::SetLogCommandParser(LogCommandParser *lcp)
|
||
|
{
|
||
|
logCommandParser=lcp;
|
||
|
if (logCommandParser)
|
||
|
logCommandParser->AddChannel("PacketConsoleLogger");
|
||
|
}
|
||
|
void PacketConsoleLogger::WriteLog(const char *str)
|
||
|
{
|
||
|
if (logCommandParser)
|
||
|
logCommandParser->WriteLog("PacketConsoleLogger", str);
|
||
|
}
|