If I have a function that is part of a module, and I want a log entry while inside the function,I have to manually print the function namespace and name e.g.
namespace MyModuleNamespace
module MyModule =
let AddTwoNums logger x y =
logger.Info("MyModuleNamespace.AddTwoNums - Start")
let res = x+y
logger.Info("MyModuleNamespace.AddTwoNums - End")
res
Is there any way I can automatically work out what "MyModuleNamespace.AddTwoNums" is as it is very cumbersome/error prone especially when you have to rename functions and modules during refactoring of code
Even if that cannot be done, is there any way I can automatically work out what "AddTwoNums" is i.e. the function name?