mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
[XSwiftBus] Add timestamp for logger
This commit is contained in:
committed by
Mat Sutcliffe
parent
99033f8538
commit
3174e15b53
@@ -13,6 +13,7 @@
|
||||
#endif
|
||||
|
||||
#include "utils.h"
|
||||
#include <XPMPMultiplayer.h>
|
||||
#include <XPMPMultiplayerCSL.h>
|
||||
#include <XPLM/XPLMUtilities.h>
|
||||
#include <XPLM/XPLMPlugin.h>
|
||||
@@ -51,7 +52,7 @@ namespace XSwiftBus
|
||||
|
||||
assert(!filePath.empty());
|
||||
std::ostringstream ss;
|
||||
ss << "xswiftbus: ";
|
||||
ss << XPMPTimestamp() << "xswiftbus: ";
|
||||
|
||||
#if defined(XSWIFTBUS_ENABLE_TRACE_LOG)
|
||||
switch (type)
|
||||
@@ -90,7 +91,7 @@ namespace XSwiftBus
|
||||
ss << message;
|
||||
ss << "\n";
|
||||
|
||||
std::string buffer = ss.str();
|
||||
const std::string buffer = ss.str();
|
||||
XPLMDebugString(buffer.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user