LoadAuditLog(FileName: String): IAuditLog;
FileName. A name and a way of the file that contains an archived access protocol.
The LoadAuditLog method loads an archived access protocol from the file, passed by the FileName parameter.
NOTE. This method works with the archived access protocol saved as the pplog file.
Executing the example requires the C: drive the Log_1.pplog file in the root, containing the archived access protocol for the certain period.
Sub Main;
Var
MB: IMetabase;
Sec: IMetabaseSecurity;
Log: IAuditLog;
Begin
MB := MetabaseClass.Active;
Sec := MB.Security;
Log := Sec.LoadAuditLog("Log_1.pplog");
Debug.WriteLine(Log.CountOperations);
End Sub Main;
After executing the example the archived access protocol is loaded from the file. The number of records, that the protocol contains, is displayed in the development environment console.
See also: