'Declaration
Public Shared Function FindMessageSource( _ ByVal skipFrames As Integer, _ ByVal trustSkipFrames As Boolean, _ ByVal exception As Exception, _ ByRef className As String, _ ByRef methodName As String, _ ByRef fileName As String, _ ByRef lineNumber As Integer _ ) As Integer
public static int FindMessageSource( int skipFrames, bool trustSkipFrames, Exception exception, out string className, out string methodName, out string fileName, out int lineNumber )
Parameters
- skipFrames
- The number of stack frames to skip over to find the first candidate to be identified as the source of the log message. (Should generally use 0 if exception parameter is not null.)
- trustSkipFrames
- True if logging a message originating in Gibraltar code (or to just trust skipFrames). False if logging a message from the client application and Gibraltar frames should be explicitly skipped over.
- exception
- An exception declared as the source of this log message (or null for normal call stack source).
- className
- The class name of the identified source (usually available).
- methodName
- The method name of the identified source (usually available).
- fileName
- The file name of the identified source (if available).
- lineNumber
- The line number of the identified source (if available).
Return Value
The index of the stack frame chosen