Post Reply 
How to trigger a log entry
Aug. 21, 2011, 04:04 PM
Post: #2
RE: How to trigger a log entry
Quote:seems to generate a line whether the filter is used or not.

$ADDLST runs when the Proxomitron sees it. Put it before all conditional statements and it always runs. Put it after all the conditional statements and it will only run when there is a filter (or routine) match.

Quote:Also, is there a way to use the log to count the number of times a filter is used rather than list it each time?

I can think of two ways. Both are hard to explain and not extensively tested. One is messy. Messy requires lists that never match and are dynamic.
The other would require filtering a Proxomitron generated page.

Probably best to use a list and then simply read the stats in "What the Proxomitron is thinking..." Consider http://local.ptron/.pinfo/lists/Bypass or http://local.ptron/.pinfo/lists/Bypass-List . It shows the number of times "local.ptron" was scanned (Scans) and found (Hits).
Your list would contain the filters' names. Your filters would contain a call to the list after the filters' conditional statements were matched.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
How to trigger a log entry - zoltan - Aug. 21, 2011, 12:17 AM
RE: How to trigger a log entry - JJoe - Aug. 21, 2011 04:04 PM
RE: How to trigger a log entry - zoltan - Aug. 21, 2011, 07:36 PM

Forum Jump: