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, 2010That's odd. In 10.0.1, I've received as much as 1.7MB using this:
when RULE_INIT {
for {set i 0} {$i < 100000} {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]
}
$ curl -s 10.42.2.10 |wc -m
1677779 (~1.6Mb)
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