Public ReadOnly Property QueueLength As Long
Dim instance As ConcreteLog Dim value As Long value = instance.QueueLength
public long QueueLength {get;}
Public ReadOnly Property QueueLength As Long
Dim instance As ConcreteLog Dim value As Long value = instance.QueueLength
public long QueueLength {get;}
ConcreteLog logger = new ConcreteLog(); //Licensed Mode //logger.UserName = "User Name From Receipt"; //logger.LicenseKey = "LicenseKey From Receipt"; //Clear all configuration logger.ResetConfiguration(); //Add a new target, you can also define targets in an xml file, app.config, or web.config FileTarget fileTarget = new FileTarget(Environment.CurrentDirectory + "\\fileLogger.txt"); //Make it asynchronous fileTarget.Mode = LoggingMode.Asynchronous; //Add it to the targets logger.Config.Targets.Add(fileTarget); for (int i = 0; i < 20000; i++) logger.Debug("This is a test " + i); //This will be greater than zero Console.WriteLine(logger.QueueLength); //Wait until all items are logged logger.Flush(5000);
Dim logger As New ConcreteLog() 'Licensed Mode 'logger.UserName = "User Name From Receipt"; 'logger.LicenseKey = "LicenseKey From Receipt"; 'Clear all configuration logger.ResetConfiguration() 'Add a new target, you can also define targets in an xml file, app.config, or web.config Dim fileTarget As New FileTarget(Environment.CurrentDirectory & "\fileLogger.txt") 'Make it asynchronous fileTarget.Mode = LoggingMode.Asynchronous 'Add it to the targets logger.Config.Targets.Add(fileTarget) For i As Integer = 0 To 19999 logger.Debug("This is a test " & i) Next i 'This will be greater than zero Console.WriteLine(logger.QueueLength) 'Wait until all items are logged logger.Flush(5000)
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2