NET Logging Library
LogStackTrace() Method
Example 



KellermanSoftware.NetLoggingLibrary Namespace > Log Class > LogStackTrace Method : LogStackTrace() Method
Log a stack trace
Syntax
Public Overloads Shared Function LogStackTrace() As LogResponse
Dim value As LogResponse
 
value = Log.LogStackTrace()
public static LogResponse LogStackTrace()
public:
static LogResponse^ LogStackTrace(); 
Example
//Licensed Mode
//Log.UserName = "User Name From Receipt";
//Log.LicenseKey = "LicenseKey From Receipt";            
 
//Clear all configuration
Log.ResetConfiguration();
 
//Add a new target, you can also define targets in an xml file, app.config, or web.config
BinaryFileTarget fileTarget = new BinaryFileTarget("fileLogger.bin");
Log.Config.Targets.Add(fileTarget);    
 
Log.LogStackTrace();
'Licensed Mode
'Log.UserName = "User Name From Receipt";
'Log.LicenseKey = "LicenseKey From Receipt";            
 
'Clear all configuration
Log.ResetConfiguration()
 
'Add a new target, you can also define targets in an xml file, app.config, or web.config
Dim fileTarget As New BinaryFileTarget("fileLogger.bin")
Log.Config.Targets.Add(fileTarget)
 
Log.LogStackTrace()
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

Log Class
Log Members
Overload List