Firebird ADO.NET Provider SDK Documentation - v1.7

FbLog Class

Retrieve the firebird.log file from the server if the log file exists. An error is returned if the log file does not exist. This class cannot be inherited.

For a list of all members of this type, see FbLog Members.

System.Object
   FirebirdSql.Data.Firebird.Services.FbService
      FirebirdSql.Data.Firebird.Services.FbLog

[Visual Basic]
NotInheritable Public Class FbLog
    Inherits FbService
[C#]
public sealed class FbLog : FbService

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

The following example retrieve the firebird.log and displays it in Console.

    
FbLog logSvc = new FbLog();

logSvc.UserName = "SYSDBA";
logSvc.UserPassword = "masterkey";
                    
logSvc.Start();

string lineOutput;
while((lineOutput = logSvc.GetNextLine()) != null)
{
    Console.WriteLine(lineOutput);
}

logSvc.Close();
                

Requirements

Namespace: FirebirdSql.Data.Firebird.Services

Assembly: FirebirdSql.Data.Firebird (in FirebirdSql.Data.Firebird.dll)

See Also

FbLog Members | FirebirdSql.Data.Firebird.Services Namespace