AuditJournalFlush Enumeration
Assembly: CodeEffects.Rule.Audit.dll
Namespace: CodeEffects.Rule.Audit
Summary
Specifies how far each journal write goes before an evaluation returns.
Syntax
public enum AuditJournalFlush
{
// The record is handed to the operating system. The default
ToOperatingSystem = 0,
// The record is written through to the disk
ToDisk = 1
}
Set it through the JournalFlush property of AuditSettings. It applies only when Mode is Asynchronous and Resilience is Journal.
ToOperatingSystem costs a few microseconds a record. The record survives the process crashing or being killed, but not a power loss that comes before the operating system writes it out.
ToDisk also survives a power loss, at the cost of a disk flush on every evaluation, usually a millisecond or more.
The numeric values are permanent.