Algebraic_Mirror
Jan 30, 2018Cirrostratus
Proper way to do debugging in an iRule
What is the best way to place extra logging statements in an iRule for potential future debugging? If I have a statement like this, will it not print to the log until someone turns debug level logging on for iRules system wide (eg - System -> Logs -> Configuration -> Options, and then under the local traffic manager section, change the iRules dropdown to debug)?
log local0.debug "Here is a log statement."
Or, do I first need to check some system variable to see if iRules have been set to debug level, and only then run that log statement?
Basically, my goal is to have nice debugging in my iRules that turns on when people set logging on the system to debug, and off otherwise.