When logging errors is helps to have the Class and method names where the exception was thrown without using string constants that are a pain to maintain. The code to get the names is
Current assembly and class name = Me.GetType.FullName
Current class name = Me.GetType.Name
Current method (function or sub) = System.Reflection.MethodBase.GetCurrentMethod().Name
Logging: how to get Class and Method names
When logging errors is helps to have the Class and method names where the exception was thrown without using string constants that are a pain to maintain. The code to get the names is
Current assembly and class name = Me.GetType.FullName
Current class name = Me.GetType.Name
Current method (function or sub) = System.Reflection.MethodBase.GetCurrentMethod().Name