Logging views separately
Kevin Darcy
kcd at chrysler.com
Thu Apr 10 21:58:28 UTC 2008
JINMEI Tatuya / 神明達哉 wrote:
> At Tue, 8 Apr 2008 19:12:39 -0400,
> CB <bdyslm at gmail.com> wrote:
>
>
>> Does anyone know if its possible to log queries and gather stats separately
>> for different views/horizons? An an example internal vs external queries?
>>
>
> Do you mean showing the view name in query logs? If so, I don't think
> it's possible, from code inspection:
>
> ns_client_log(client, NS_LOGCATEGORY_QUERIES, NS_LOGMODULE_QUERY,
> level, "query: %s %s %s %s%s%s%s%s", namebuf, classname,
> typename, WANTRECURSION(client) ? "+" : "-",
> (client->signer != NULL) ? "S": "",
> (client->opt != NULL) ? "E" : "",
> ((extflags & DNS_MESSAGEEXTFLAG_DO) != 0) ? "D" : "",
> ((flags & DNS_MESSAGEFLAG_CD) != 0) ? "C" : "");
>
Inspecting deeper, it appears that ns_client_logv() (for which
ns_client_log() is basically just a varargs wrapper) derives the view
name from the "client" pointer and outputs it in the log.
- Kevin
More information about the bind-users
mailing list