ZooFlow: Add Base Form

This commit is contained in:
Jonathan Jenne
2021-02-12 12:47:40 +01:00
parent 4108410b15
commit 403c87bde7
12 changed files with 156 additions and 114 deletions

View File

@@ -292,7 +292,7 @@ Public Class LogConfig
''' <returns>The fully qualified class name</returns>
''' <remarks>This method is very resource-intensive!</remarks>
<DebuggerStepThrough()>
Public Shared Function GetClassFullName() As String
Public Shared Function GetClassFullName(Optional IncludeMethodNames As Boolean = False) As String
Dim oFramesToSkip As Integer = 2
Dim oClassName As String = String.Empty
Dim oStackTrace = Environment.StackTrace
@@ -303,6 +303,10 @@ Public Class LogConfig
Dim oMethodStartIndex As Integer = oCallingClassAndMethod.LastIndexOf(".", StringComparison.Ordinal)
If oMethodStartIndex > 0 Then
If IncludeMethodNames Then
oMethodStartIndex = oCallingClassAndMethod.Count
End If
Dim oCallingClass = oCallingClassAndMethod.Substring(0, oMethodStartIndex)
oClassName = oCallingClass.TrimEnd("."c)