[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3845 - trunk/OpenDNSSEC/signer/src/util

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Aug 31 16:19:24 CEST 2010


Author: matthijs
Date: 2010-08-31 16:19:24 +0200 (Tue, 31 Aug 2010)
New Revision: 3845

Modified:
   trunk/OpenDNSSEC/signer/src/util/log.c
   trunk/OpenDNSSEC/signer/src/util/log.h
Log:
heavy debug logging needed



Modified: trunk/OpenDNSSEC/signer/src/util/log.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/util/log.c	2010-08-31 14:01:30 UTC (rev 3844)
+++ trunk/OpenDNSSEC/signer/src/util/log.c	2010-08-31 14:19:24 UTC (rev 3845)
@@ -56,6 +56,8 @@
 #define LOG_DEBUG   7 /* se_log_debug */
 #endif /* HAVE_SYSLOG_H */
 
+#define LOG_DEEEBUG 8 /* se_log_deeebug */
+
 static FILE* logfile = NULL;
 static int log_level = LOG_CRIT;
 
@@ -223,6 +225,22 @@
 
 
 /**
+ * Heavy debug logging.
+ *
+ */
+void
+se_log_deeebug(const char *format, ...)
+{
+    va_list args;
+    va_start(args, format);
+    if (log_level >= LOG_DEEEBUG) {
+        se_log_vmsg(LOG_DEBUG, "debug", format, args);
+    }
+    va_end(args);
+}
+
+
+/**
  * Log debug.
  *
  */

Modified: trunk/OpenDNSSEC/signer/src/util/log.h
===================================================================
--- trunk/OpenDNSSEC/signer/src/util/log.h	2010-08-31 14:01:30 UTC (rev 3844)
+++ trunk/OpenDNSSEC/signer/src/util/log.h	2010-08-31 14:19:24 UTC (rev 3845)
@@ -63,6 +63,13 @@
 int se_log_get_facility(const char* facility);
 
 /**
+ * Heavy debug loggin.
+ * \param[in] format printf-style format string, arguments follow
+ *
+ */
+void se_log_deeebug(const char *format, ...);
+
+/**
  * Log debug.
  * \param[in] format printf-style format string, arguments follow
  *




More information about the Opendnssec-commits mailing list