2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

330. [func] New function isc_log_wouldlog().

This commit is contained in:
Andreas Gustafsson
2000-07-13 00:19:02 +00:00
parent ecb2897c71
commit 30576c592b
3 changed files with 40 additions and 20 deletions

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: log.h,v 1.25 2000/06/19 21:45:03 explorer Exp $ */
/* $Id: log.h,v 1.26 2000/07/13 00:18:53 gson Exp $ */
#ifndef ISC_LOG_H
#define ISC_LOG_H 1
@@ -627,6 +627,17 @@ isc_log_getdebuglevel(isc_log_t *lctx);
* The current logging debugging level is returned.
*/
isc_boolean_t
isc_log_wouldlog(isc_log_t *lctx, int level);
/*
* Determine whether logging something to 'lctx' at 'level' would
* actually cause something to be logged somewhere.
*
* If ISC_FALSE is returned, it is guaranteed that nothing would
* be logged, allowing the caller to omit unnecessary
* isc_log_write() calls and possible message preformatting.
*/
void
isc_log_setduplicateinterval(isc_logconfig_t *lcfg, unsigned int interval);
/*