NET Logging Library
Debug(String) Method
Example 



KellermanSoftware.NetLoggingLibrary Namespace > ConcreteLog Class > Debug Method : Debug(String) Method
Log a debug message
Syntax
Public Overloads Function Debug( _
   ByVal message As String _
) As LogResponse
Dim instance As ConcreteLog
Dim message As String
Dim value As LogResponse
 
value = instance.Debug(message)
public LogResponse Debug( 
   string message
)
public:
LogResponse^ Debug( 
   String^ message
) 

Parameters

message
Example
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);
 
//Log a Debug Message
logger.Debug("Test Message");
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)
 
'Log a Debug Message
logger.Debug("Test Message")
Requirements

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

See Also

Reference

ConcreteLog Class
ConcreteLog Members
Overload List