-logwrap(notice, " notice", LOG_NOTICE, -1);
-logwrap(info, " info", LOG_INFO, -1);
-logwrap(debug, " debug", LOG_DEBUG, -1);
+DIEWRAP(syscrash, " critical", LOG_CRIT, errno, 16);
+DIEWRAP(crash, " critical", LOG_CRIT, -1, 16);
+
+#define INNLOGWRAPS(INNLOGWRAP) \
+ INNLOGWRAP(die, " fatal", LOG_ERR) \
+ INNLOGWRAP(warn, " warning", LOG_WARNING) \
+ INNLOGWRAP(notice, " notice", LOG_NOTICE)
+INNLOGWRAPS(INNLOGWRAP_DECLARE)
+
+LOGWRAP(info, " info", LOG_INFO, -1)
+LOGWRAP(dbg, " debug", LOG_DEBUG, -1)