Logging views separately

JINMEI Tatuya / 神明達哉 Jinmei_Tatuya at isc.org
Fri Apr 11 18:26:54 UTC 2008


At Thu, 10 Apr 2008 17:58:28 -0400,
Kevin Darcy <kcd at chrysler.com> wrote:

> > 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.

Ah, you're right.  Thanks for correcting me:-)

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.


More information about the bind-users mailing list