LoggerKeepLogFileOpen Property |
Gets or sets whether the log file must be kept open during MailBee session.
Namespace: MailBeeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public bool KeepLogFileOpen { get; set; }
Public Property KeepLogFileOpen As Boolean
Get
Set
Property Value
Type:
Booleantrue if the component (such as
Smtp,
Pop3 or
Imap) will keep the file open during the lifetime of
the instance of the component);
false if the component re-opens the log file
and then closes it on each writing into the log. The default value is
false.
Remarks Keeping the log file open increases performance, although it's less reliable
(operating system may cache log data so they might not be placed into the log if some
kind of critical hardware or operating system error occurs). Also, the log contents
won't be available for other applications while the log is still open.
Note |
---|
The developer can close the opened log (to make sure all the data
is actually saved) just by setting KeepLogFileOpen to false.
Then, KeepLogFileOpen can be set back to true if desired. |
See Also