Public Sub CloseAllConnections()
Dim instance As ConcreteLog instance.CloseAllConnections()
public void CloseAllConnections()
public: void CloseAllConnections();
Public Sub CloseAllConnections()
Dim instance As ConcreteLog instance.CloseAllConnections()
public void CloseAllConnections()
public: void CloseAllConnections();
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"); logger.Config.Targets.Add(fileTarget); //Parameters string message = "Test Message"; string additionalInfo = "Additional Info"; //Log a debug message logger.Debug(message, additionalInfo); //Close all file and database connections logger.CloseAllConnections();
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") logger.Config.Targets.Add(fileTarget) 'Parameters Dim message As String = "Test Message" Dim additionalInfo As String = "Additional Info" 'Log a debug message logger.Debug(message, additionalInfo) 'Close all file and database connections logger.CloseAllConnections()
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