In a framework library, which is included in all of our projects, we have a Log function.
In the framework
public static class Log
{
GenericLog(string msg){ string caller = GETDLLNAME //implementation}
GenericError(string msg){ string caller = GETDLLNAME //implementation}
}
In other code
using Framework;
public class foo
{
public string GenerateBar()
{
Log.GenericLog("FooBar");
}
}
Is there any way to determine the name of the DLL from where Log.GenericLog is called ?
Aucun commentaire:
Enregistrer un commentaire