ibec_GetServerLog

The IBEBlock function, ibec_GetServerLog, retrieves a Firebird/InterBase® server log using the Services API (if available) and saves it into a specified file (or variable).

Syntax

 function ibec_GetServerLog(ConnectParams : string; FileName : variant) : variant; 

If FileName is specified as NULL or an empty string, the ibec_GetServerLog function returns the server log as the result. Otherwise it returns NULL.

Example

 execute ibeblock 
 as 
   begin 
     res = ibec_GetServerLog('ServerName=localHOST/3070; User=SYSDBA; Password=masterke; 
                              ClientLib="C:\Program Files\Firebird25\bin\fbclient.dll"', 
                              'W:\srvlog.txt'); 
   end 

<< Server functions | IBEBlock | ibec_GetDiskFreeSpace >>