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

@@ -34,6 +34,9 @@ namespace XPC
/// writing header information to the log file.
static void Initialize(std::string header);
/// Closes the log file.
static void Close();
/// Writes the C string pointed to by format, followed by a line
/// terminator to the XPC log file. If format contains format
/// specifiers, additional arguments following format will be formatted