I'm currently working an SR where we are dynamically turning on/off logging for other classes. Since you know the syntax to reference your own activity, if you used the same technique, you would be able to do want you want. I'll reach out to the SME who provided the logging steps (I don't seem to be able to find where I squirreled them away), although the customer had to tweak what he provided in order to get it to work. Let's see if he can help. We may have to contact the customer for the final form of what is working.