Is there a predifined way of doing this or do we need to define our own custom formatter?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get the method name by configuring your TextFormatter in the config file. I’ve included the whole formatter to give you some context but the key thing to look for is the {property(MethodName)} in the template attribute. I’m not sure how to get the line number.
The MSDN article on Configuring Formatters mentions these special tokens but unfortunately doesn’t explain how to use them very well.