Skip to content

Commit c9a09aa

Browse files
committed
feat(conf): Add stdout logging
1 parent 2211e3b commit c9a09aa

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

includes/etc/bind/conf.d/logging.conf

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,23 @@ logging {
6262
print-severity yes;
6363
severity info;
6464
};
65+
66+
67+
channel stdout {
68+
69+
stderr;
70+
71+
severity info;
72+
73+
print-time yes;
74+
75+
print-severity yes;
76+
77+
print-category yes;
78+
79+
};
80+
81+
6582
//
6683
// If you have the category ‘queries’ defined, and you don’t want query logging
6784
// by default, make sure you add option ‘querylog no;’ - then you can toggle
@@ -105,18 +122,18 @@ logging {
105122
//
106123
// Log routine stuff to syslog and default log:
107124
//
108-
category default { default_syslog; default_debug; default_log; };
109-
category config { default_syslog; default_debug; default_log; };
125+
category default { default_syslog; stdout; default_debug; default_log; };
126+
category config { default_syslog; stdout; default_debug; default_log; };
110127
category dispatch { default_syslog; default_debug; default_log; };
111-
category network { default_syslog; default_debug; default_log; };
112-
category general { default_syslog; default_debug; default_log; };
128+
category network { default_syslog; stdout; default_debug; default_log; };
129+
category general { default_syslog; stdout; default_debug; default_log; };
113130
//
114131
// From BIND 9.12 and newer, you can direct zone load logging to another
115132
// channel with the new zoneload logging category. If this would be useful
116133
// then firstly, configure the new channel, and then edit the line below
117134
// to direct the category there instead of to syslog and default log:
118135
//
119-
category zoneload { default_syslog; default_debug; default_log; };
136+
category zoneload { default_syslog; stdout; default_debug; default_log; };
120137
//
121138
// Log messages relating to what we got back from authoritative servers during
122139
// recursion (if lame-servers and edns-disabled are obscuring other messages
@@ -197,5 +214,5 @@ logging {
197214
// higher - it can be useful to troubleshoot problems where queries are
198215
// resulting in a SERVFAIL response.
199216
//
200-
category query-errors {query-errors_log; };
217+
category query-errors {query-errors_log; stdout; };
201218
};

0 commit comments

Comments
 (0)