proper use of log verbosity frequency

Asked by Tom

What is the proper, or at least suggested use of the log verbosity frequency levels, flOperation, flXaction, flApplication?

At a high level, it would seem that flApplication might map to logging of the adapter::Service functions and flXaction might map to adapter::Xaction functions, but then I'm uncertain how flOperation comes into play.

On a related question, how does the FrequencyLevel and ImportantLevel related to Squid's debug_options values of 1-9 for controlling the output (http://www.squid-cache.org/Doc/config/debug_options/)? Given Squid's values of 1-9, does that imply only the lowest level byte (ImportanceLevel) of eCap's LogVerbosity impacts the debug output from Squid?

Any other advice or "best practice" suggestions? Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Rousskov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Rousskov (rousskov) said :
#1

Frequency definitions are, roughly:

flXaction -- something that may happen once or twice per master transaction
flOperation -- more frequent than flXaction
flApplication -- less frequent than flXaction

Master transaction is handling of a single [HTTP] request by the host application, including all eCAP, ICAP, and HTTP exchanges required to satisfy that request.

Please direct Squid-specific questions to Squid forums.

Revision history for this message
Tom (web-l) said :
#2

> Please direct Squid-specific questions to Squid forums.

I both understand and respect that you don't want this to become a Squid support forum, but isn't my question about the debug_options level specific to eCap? I'm asking about how libecap::LogVerbosity and its declarations relate. It certainly touches on both Squid and eCap, but asking in the Squid forum would assume that someone there knows how eCap was implemented. I understand how the debug_options work in general, just not how eCap ties to that.

I'm happy to ask there, and I do respect that this should not be a general Squid support forum. I wasn't trying to do that.

Revision history for this message
Alex Rousskov (rousskov) said :
#3

The mapping is done by Squid developers inside Squid sources so that part of the question is Squid-specific.

Revision history for this message
Tom (web-l) said :
#4

Thanks Alex Rousskov, that solved my question.