diff options
author | Johannes Thorn <dante@g4t3.de> | 2008-09-28 00:35:16 +0200 |
---|---|---|
committer | Johannes Thorn <dante@g4t3.de> | 2008-09-28 00:35:16 +0200 |
commit | 29d723d82834a30557136f7585254eaf3673ce69 (patch) | |
tree | 2a6fa6686a709bc205036288c8f6c75cdccc050f /src/Net/Packets/LogPacket.h | |
parent | 37b452c361d99ca809c699b6968df3723f0cadb9 (diff) | |
download | mad-29d723d82834a30557136f7585254eaf3673ce69.tar mad-29d723d82834a30557136f7585254eaf3673ce69.zip |
Logger gr?ndlich ?berarbeitet und den Networklogger um Timestamp erweitert.
Diffstat (limited to 'src/Net/Packets/LogPacket.h')
-rw-r--r-- | src/Net/Packets/LogPacket.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Net/Packets/LogPacket.h b/src/Net/Packets/LogPacket.h index 814ea28..2c541ae 100644 --- a/src/Net/Packets/LogPacket.h +++ b/src/Net/Packets/LogPacket.h @@ -24,6 +24,7 @@ #include <Common/Logger.h> #include <string> +#include <ctime> namespace Mad { namespace Net { @@ -34,13 +35,14 @@ class LogPacket : public Packet { struct LogData { uint16_t category; uint16_t level; + uint16_t messageTimestamp; uint8_t message[0]; }; LogData *logData; public: - LogPacket(Type type, uint16_t requestId, Common::Logger::MessageCategory category, Common::Logger::MessageLevel level, const std::string &message); + LogPacket(Type type, uint16_t requestId, Common::Logger::MessageCategory category, Common::Logger::MessageLevel level, time_t messageTimestamp, const std::string &message); LogPacket(const Packet &p) : Packet(p) { if(getLength() < sizeof(LogData)) |