26.3 Free Format FilteringWith the free format approach, you could simply add a column onto the tracetab_activate table which would contain the wildcard string:
Then when you insert into the table to "turn on" logging of trace information, you provide the string:
In this case, I am looking for trace messages which contain the word INVOICE. I would then modify the activated function shown earlier in the article to a procedure which returns a TRUE/FALSE value, to indicate whether or not the trace is activated for this user, as well as the match string. Here is the header for such a procedure:
My trace.startup procedure would call the check_activation routine as follows:
The log procedure accepts the match string, setting flags internal to PLVlog so that the trace message is checked against the match string and is passed on to the log if a match is found.
Copyright (c) 2000 O'Reilly & Associates. All rights reserved. |
|