Updated plugin logging.

- The plugin now keeps the log file open for the duration of its lifetime.
 - This greatly improves the performace of the logging component, which was previously a significant bottleneck even at low logging verbosity.
 - The log now prints timestamps to the millisecond.
This commit is contained in:
Jason Watkins
2015-04-30 16:17:30 -07:00
parent aaf25a9933
commit d735e0f3ad
3 changed files with 33 additions and 18 deletions

View File

@@ -119,6 +119,7 @@ PLUGIN_API void XPluginStop(void)
{
XPLMUnregisterFlightLoopCallback(XPCFlightLoopCallback, NULL);
XPC::Log::WriteLine("[EXEC] Plugin Shutdown");
XPC::Log::Close();
}
PLUGIN_API void XPluginDisable(void)