krisdames
Apr 19, 2013Cirrus
Conditional logging
Hi,
I typically put this at the top of all my irules (learned it from the F5 consultant that set up our BigIP). This allows me to easily turn debugging on and off:
if { $static::debug } { log local0. "debugging message" }
I'd like to create a block of logging statements like so (Example B):
if { $static::debug } {
log local0. "debugging message 1"
log local0. "debugging message 2"
}
But this does not seem to work. Both debug messages get logged, regardless of the value of static::debug. What am I doing wrong?
--
Kris