2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

include severity level in log messages printed on stderr

This commit is contained in:
Andreas Gustafsson 2000-05-06 00:50:41 +00:00
parent b4780360a4
commit 2e6c976751
2 changed files with 10 additions and 8 deletions

View File

@ -1290,9 +1290,10 @@ setup_logging(int level, isc_log_t **logp) {
dns_log_setcontext(log);
/*
* Set up a channel similar to default_stderr except
* that the logging level is passed in and the
* time is not printed.
* Set up a channel similar to default_stderr except:
* - the logging level is passed in
* - the logging level is printed
* - no time stamp is printed
*/
destination.file.stream = stderr;
destination.file.name = NULL;
@ -1302,7 +1303,7 @@ setup_logging(int level, isc_log_t **logp) {
ISC_LOG_TOFILEDESC,
level,
&destination,
0);
ISC_LOG_PRINTLEVEL);
check_result(result, "isc_log_createchannel()");
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr",

View File

@ -1290,9 +1290,10 @@ setup_logging(int level, isc_log_t **logp) {
dns_log_setcontext(log);
/*
* Set up a channel similar to default_stderr except
* that the logging level is passed in and the
* time is not printed.
* Set up a channel similar to default_stderr except:
* - the logging level is passed in
* - the logging level is printed
* - no time stamp is printed
*/
destination.file.stream = stderr;
destination.file.name = NULL;
@ -1302,7 +1303,7 @@ setup_logging(int level, isc_log_t **logp) {
ISC_LOG_TOFILEDESC,
level,
&destination,
0);
ISC_LOG_PRINTLEVEL);
check_result(result, "isc_log_createchannel()");
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr",