I never added attributes to methods programmatically, as it looks like an inefficient nightmare, for which I always found a preferred alternative.
You need to check somewhere, and although I agree that the attribute code may not be the best for him, this is not particularly bad. If you really do not want to do this, you can ignore the logging code so that it includes only the types of records that were included, and then you how much architecture you want to place around.
source share