Log iRule Name in an iRule

Hi all. Hopefully a quick and easy one for someone. Is there a way to obtain the name of an iRule, from within that iRule, so I can use it for logging.

Yes, logging prefixes the iRule name, but I want to use it elsewhere.

Yes, I can just enter it manually in the rule, but this doesn’t help where automation and templating are concerned.

Many thanks in advance.

Use an iApp to create the iRule and add the name into it using a macro.