omni::structuredlog::fSchemaFlagKeepLogOpen
Defined in omni/structuredlog/IStructuredLog.h
-
constexpr SchemaFlags omni::structuredlog::fSchemaFlagKeepLogOpen = 0x00000001
Flag to indicate that the log file should remain open between messages.
By default, each event message will cause the log file to be opened, the message written, then the log file closed. This flag can make writing a large number of frequent event messages more efficient by avoiding the expense of opening and closing the log file repeatedly. However, using this may also prevent the log file from being moved or deleted while an app is still running. To work around that, all persistently open log files can be temporarily forced closed using IStructuredLogControl::closeLog().