I don’t know how we can implement this method in invoke code, because we need activity context object. In visual studio activity creator you can also get and use current workflow file name or path. What is more LogLevel can be implemented there as dropdown in property panel.