Logging with isc bind 9
example 1
...
logging{
channel queries_log{
file "/var/log/named/queries.log" versions 10 size 20m;
severity debug 1;
print-severity yes;
print-time yes;
print-category yes;
};
channel debug_log{
file "/var/log/named/debug.log" versions 10 size 20m;
severity debug 1;
print-severity yes;
print-time yes;
print-category yes;
};
channel other_log{
file "/var/log/named/other.log" versions 10 size 20m;
severity debug 1;
print-severity yes;
print-time yes;
print-category yes;
};
category default { debug_log; };
category queries { queries_log; };
category client { other_log; };
category config { other_log; };
category delegation-only { other_log; };
category database { other_log; };
category dispatch { other_log; };
category dnssec { other_log; };
category general { other_log; };
category lame-servers { other_log; };
category security { other_log; };
category xfer-in { other_log; };
category xfer-out { other_log; };
};