NET Logging Library
LogStackTrace(Int32) Method
Example 



KellermanSoftware.NetLoggingLibrary Namespace > ConcreteLog Class > LogStackTrace Method : LogStackTrace(Int32) Method
Log a stack trace, skipping frames
Syntax
Public Overloads Function LogStackTrace( _
   ByVal skipFrame As Integer _
) As LogResponse
Dim instance As ConcreteLog
Dim skipFrame As Integer
Dim value As LogResponse
 
value = instance.LogStackTrace(skipFrame)
public LogResponse LogStackTrace( 
   int skipFrame
)
public:
LogResponse^ LogStackTrace( 
   int skipFrame
) 

Parameters

skipFrame
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
BinaryFileTarget fileTarget = new BinaryFileTarget("fileLogger.bin");
logger.Config.Targets.Add(fileTarget);    
 
int skipFrame = 2;
logger.LogStackTrace(skipFrame);
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 BinaryFileTarget("fileLogger.bin")
logger.Config.Targets.Add(fileTarget)
 
Dim skipFrame As Integer = 2
logger.LogStackTrace(skipFrame)
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