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:
@@ -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);
|
||||
/*
|
||||
|
Reference in New Issue
Block a user