Getting the name of the calling assembly

  • Thread starter Thread starter Steve Singer
  • Start date Start date
S

Steve Singer

Hello, I am creating a function which writes logging messages to a database.
Ideally, I would like to log the assembly name which is calling my logging
function. I know that I would use Me.GetType.ToString to get the current
assembly, but that would give me the assembly name of the logging function!
Do you have any ideas? I think I would need to use the reflection class or
something like that.

(I know the easy way would be to always pass Me.GetType.ToString to the
logging function, but I am trying to pass as little as possible!)

Thank you in advance for your help!
 
Steve,

Steve Singer said:
I would like to log the assembly name which is calling my logging
function.

\\\
Imports System.Reflection
..
..
..
MsgBox([Assembly].GetCallingAssembly().FullName)
///
 
Back
Top