Archive(
FileName: String;
[Callback: IAuditLogArchiveCallback = Null;]
[Format: AuditLogArchiveFormat = 0;]
[ClearLog: Boolean = False]);
FileName is a name of the file.
Callback is an object that is used fro tracking the process of archiving of the access protocol.
Format is a format of the file in which the saving is executed.
ClearLog is a parameter that determines whether the records will be removed from the access protocol after archiving. The False value was set by default, the access protocol is not cleared. If the True value is set, all records of the access protocol are removed after archiving.
The Archive method archives the access protocol in the file, the name of which is passed by the FileName parameter.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
AL: IAuditLog;
Begin
MB:=MetabaseClass.Active;
MS:=MB.Security;
Al:=MS.OpenAuditLog;
AL.Archive("c:\Gurnal_28.04.2006.pplog");
End Sub Main;
After executing the example the log will be saved to Gurnal_28.04.2006.pplog file.
See also: