Forum Discussion
TayF5un
Nimbostratus
Jan 04, 2017irule static::debug
Hi everyone,
I am bit confused, when i interpret irule shown below.
Why should i use static::debug. Could you please explain the function of this.
when RULE_INIT {
set static::debug 0
...
Kevin_Stewart
Employee
Jan 04, 2017It's a static variable, similar to static (global) variables you'd use in other programming languages. So you're setting it once and reading it throughout the code. In this case it's being used to globally enable (1) or disable (0) logging in the iRule.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects