2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +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); dns_log_setcontext(log);
/* /*
* Set up a channel similar to default_stderr except * Set up a channel similar to default_stderr except:
* that the logging level is passed in and the * - the logging level is passed in
* time is not printed. * - the logging level is printed
* - no time stamp is printed
*/ */
destination.file.stream = stderr; destination.file.stream = stderr;
destination.file.name = NULL; destination.file.name = NULL;
@@ -1302,7 +1303,7 @@ setup_logging(int level, isc_log_t **logp) {
ISC_LOG_TOFILEDESC, ISC_LOG_TOFILEDESC,
level, level,
&destination, &destination,
0); ISC_LOG_PRINTLEVEL);
check_result(result, "isc_log_createchannel()"); check_result(result, "isc_log_createchannel()");
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr", 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); dns_log_setcontext(log);
/* /*
* Set up a channel similar to default_stderr except * Set up a channel similar to default_stderr except:
* that the logging level is passed in and the * - the logging level is passed in
* time is not printed. * - the logging level is printed
* - no time stamp is printed
*/ */
destination.file.stream = stderr; destination.file.stream = stderr;
destination.file.name = NULL; destination.file.name = NULL;
@@ -1302,7 +1303,7 @@ setup_logging(int level, isc_log_t **logp) {
ISC_LOG_TOFILEDESC, ISC_LOG_TOFILEDESC,
level, level,
&destination, &destination,
0); ISC_LOG_PRINTLEVEL);
check_result(result, "isc_log_createchannel()"); check_result(result, "isc_log_createchannel()");
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr", RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr",