Forum Discussion
Robert_Reznicek
Nimbostratus
Apr 14, 2010printing variables values
Is it possible to use another method for printing, that log command?
I need to print items of array for debug purposes (approx. 1000 items) and i found out, that when using log command in foreach...
hoolio
Cirrostratus
Apr 14, 2010Hi Robert,
On 10.1, logging ~100-400 lines in a loop seems to work. Beyond that, you start seeing throttling. Your idea of using HTTP::respond seems to work in a simple test. What issue did you see with it?
when RULE_INIT {
load up an array
for {set i 0} {$i < 1000} {incr i} {
set ::arr($i) "value$i"
log local0. "\$i-1000: $i"
}
log local0. "size: [array size ::arr]"
}
when HTTP_REQUEST {
HTTP::respond 200 content [array get ::arr]
}
Aaron
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