IForeRuntime.ExternReferenceLogger

Syntax

ExternReferenceLogger: IExternReferenceLogger;

ExternReferenceLogger: Prognoz.Platform.Interop.Fore.IExternReferenceLogger;

Description

The ExternReferenceLogger property returns logging settings of external links counter changes.

Example

Add a link to the Fore system assembly.

Sub UserProc;
Var
    Mb: IMetabase;
    ExtLogger: IExternReferenceLogger;
    
//...
Begin
    Mb := MetabaseClass.Active;
    ExtLogger := (Mb 
As IForeServices).GetRuntime.ExternReferenceLogger;
    ExtLogger.Collapse := 
True;
    ExtLogger.Enable := 
True;
    ExtLogger.ObjectIndexing := 
True;
    
//...
    // Executable application code
    //...
    ExtLogger.Enable := False;
    ExtLogger.SaveToFile(
"D:\ExtLog.txt");
    
//...
    // Continuation of application code
    //...
End Sub UserProc;

Imports Prognoz.Platform.Interop.Fore;

Public Shared Sub Main(Params: StartParams);
Var
    Mb: IMetabase;
    ExtLogger: IExternReferenceLogger;
    
//...
Begin
    Mb := Params.Metabase;
    ExtLogger := (Mb 
As IForeServices).GetRuntime().ExternReferenceLogger;
    ExtLogger.Collapse := 
True;
    ExtLogger.Enable := 
True;
    ExtLogger.ObjectIndexing := 
True;
    
//...
    // Executable application code
    //...
    ExtLogger.Enable := False;
    ExtLogger.SaveToFile(
"D:\ExtLog.txt");
    
//...
    // Continuation of application code
    //...
End Sub;

The specified example displays how to activate logging of external links counter changes in the application code and then to save obtained log to the file.

See also:

IForeRuntime