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!
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!