Forum Discussion
hooleylist
May 18, 2010Cirrostratus
Hi Nicolas,
I don't think there is a way to get the line number programmatically from an iRule. I suppose you could increment a local variable before each log line and log that though:
set counter 0
log local0. "$counter: my log message"
... iRule code ...
incr counter
log local0. "$counter: my next log message"
... iRule code ...
Or you could hard code the debug lines:
log local0. "1: my log message"
... iRule code ...
log local0. "2: my next log message"
... iRule code ...
Aaron