NET Logging Library
Database - Firebird
Basic Tasks > Database - Firebird

The FirebirdTarget uses and ODBC connection string to connect to your Firebird database.  It automatically creates a logging table on startup with the name of tblLog if it does not exist.  It automatically discards oldest entries after reaching a default of 10,000 log messages.  This behavior can be overridden.

 

It has these properties that can be configured:

tblLog Columns (Automatically Created)
LogID BIGINT NOT NULL
LogDate DATE
Message VARCHAR(8000)
Additional VARCHAR(8000)
ElapsedMilliseconds FLOAT
LogLevel VARCHAR(50)
MachineName VARCHAR(100)
UserName VARCHAR(100)
ProcessName VARCHAR(100)
CallingMethod VARCHAR(255)
LineNumber VARCHAR(100)

 

//Example runtime configuration, can also use log.config, app.config, or web.config
Log.ResetConfiguration();

FirebirdTarget target = new FirebirdTarget();
target.ConnectionString = @"DRIVER=Firebird/InterBase(r) driver;UID=SYSDBA;PWD=masterkey;DBNAME=E:\FIREBIRD.FDB;";
target.TableName = "LogTable";
//Set to zero to not discard max entries
target.MaxEntries = 10000;
Log.Config.Targets.Add(target);

Log.Debug("This is a test");