Feature request (with patch): debug-only option for logging

Doug Barton dougb at dougbarton.us
Mon Aug 4 23:19:24 UTC 2008


Once again based on the discussion from freebsd-net, there is no way 
to reproduce the functionality of the default_debug channel (only 
receives input when debug is >0) because there is currently no option 
to set the ISC_LOG_DEBUGONLY flag. So, I added one. :)

http://dougbarton.us/bind-debug-only-channel.diff

Using that patch I was able to do this:

logging {
         channel our_debug {
                 file "/var/log/named.run";
                 severity dynamic;
                 print-time yes;
                 debug-only yes;
         };
         category default { default_syslog; our_debug; };
         category unmatched { null; };
};

Which duplicates the default logging configuration except that you can 
now specify the location for the named.run file (or give it another 
file name, etc.).

Any interest in this one? If so I could be persuaded to also work up 
the docs for it.


Regards,

Doug


More information about the bind-users mailing list