I’m wanting to write out the Library and Function name for diagnostic purposes to the event log. Using the event log is something I do regularly using
Ice.Diagnostics.Log.WriteEntry("Put your strings in here");
Ideally I wanted to put in the Library name and Function like
Ice.Diagnostics.Log.WriteEntry(this.LibraryID.ToString() +" " + <put the function name here>);
unfortunately while the LibraryID is exposed the FunctionId isn’t.
Does anyone have any suggestion on how to do this. Clearly I could hardcode it, but that defeats the usability of things.
I do see there are the Epicor.Functions.Core and the Epicor.Functions.Runtime assemblies, but not sure how they might help.
Any ideas appreciated.